[lworld] RFR: 8244231: [lworld] Add support for ref-default and val-default inline classes.

Srikanth Adayapalam sadayapalam at openjdk.java.net
Thu Jul 22 06:44:58 UTC 2021


On Wed, 21 Jul 2021 11:40:44 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Code changes and tests
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java line 3993:
> 
>> 3991:         Name name = typeName();
>> 3992: 
>> 3993:         if ((mods.flags & Flags.PRIMITIVE_CLASS) != 0) {
> 
> Not a code comment, but I find the syntax `primitive class Foo.val` a bit jarring to define a *reference*-favoring class.

Understand, this is directly implementing the syntax prescribed by the JEP and feedback would be welcomed there,

-------------

PR: https://git.openjdk.java.net/valhalla/pull/482


More information about the valhalla-dev mailing list