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

Roger Riggs rriggs at openjdk.org
Mon Oct 10 22:53:56 UTC 2022


On Fri, 7 Oct 2022 00:56:39 GMT, Mandy Chung <mchung 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).

Marked as reviewed by rriggs (Committer).

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?

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

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



More information about the valhalla-dev mailing list