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

Claes Redestad claes.redestad at oracle.com
Thu Jul 12 11:15:57 UTC 2018



On 2018-07-12 02:01, Paul Sandoz wrote:
> Hi,
> Please review this fix for 11:
>    http://cr.openjdk.java.net/~psandoz/jdk/JDK-8207027-lookup-access-class-array-type/webrev/
> 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).
> Thanks,
> Paul.

More information about the core-libs-dev mailing list