[lworld] RFR: 8244231: [lworld] Add support for ref-default and val-default inline classes.
sadayapalam at openjdk.java.net
Thu Jul 22 11:23:01 UTC 2021
On Thu, 22 Jul 2021 09:56:32 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> I mean - this code does a bunch of checks - and then creates a new class type with the opposite flavor/polarity. Isn't that what methods like `Type::asValueType` are supposed to do? E.g. if I have a reference-favoring primitive and I see `.val` can't I just get the type I want by calling `asValueType()` on it? If so, should we also have the dual?
OK, understand your point and agree that this could avoid some code duplication, Will follow up. Thanks!
More information about the valhalla-dev