[11] RFR 8207027 Lookup.accessClass fails for an array type in the same package when assertions are enabled

Paul Sandoz paul.sandoz at oracle.com
Thu Jul 12 00:01:02 UTC 2018


Please review this fix for 11:


The fix removes an old and now incorrect assert statement. This statement causes MethodHandles.Lookup.accessClass to fail when system assertions are enabled and an array class in the same package as the lookup class is passed as an argument. 

Usages of MethodHandles.Lookup.accessClass such as by ConstantBootstraps.arrayVarHandle will also fail, which results in a JCK test failure (reported in bug).


More information about the core-libs-dev mailing list