[lworld] RFR: 8270852: [lworld] bytecodes spinned at runtime should set minor_version to 65535 if preview feature enabled

Mandy Chung mchung at openjdk.org
Mon Oct 10 22:53:57 UTC 2022


On Mon, 10 Oct 2022 22:30:57 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> This patch prepares for lworld to switch to a preview feature.  Also fix the generation of lambda classes and proxy classes to have `Preload` attribute for value classes (not only primitive classes).
>
> src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java line 645:
> 
>> 643:                 c = c.getComponentType();
>> 644:             }
>> 645:             return (c.isValue() && !PrimitiveClass.isPrimitiveClass(c)) || PrimitiveClass.isPrimitiveValueType(c);
> 
> Perhaps there should be a method that computes this compound expression?

This compound expression should not be needed.  Preload attribute is generated for a value class including primitive class.  It's a leftover when we added support for value objects.

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

PR: https://git.openjdk.org/valhalla/pull/779



More information about the valhalla-dev mailing list