[jdk17] RFR: JDK-8266269: Lookup::accessClass fails with IAE when accessing an arrayClass with a protected inner class as component class
Chris Hegarty
chegar at openjdk.java.net
Fri Jun 25 08:48:05 UTC 2021
On Thu, 24 Jun 2021 18:42:23 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> `Lookup::accessClass` should determine the accessibility of the element type. An array class is accessible if and only if its element type is accessible.
>
> This also fixes a spec bug to document `@throws NullPointerException` if the argument is null.
>
> Please review the CSR:
> https://bugs.openjdk.java.net/browse/JDK-8269312
Marked as reviewed by chegar (Reviewer).
test/jdk/java/lang/invoke/t8150782/TestFindClass.java line 42:
> 40:
> 41: import org.testng.annotations.*;
> 42: import p.Foo;
maybe a stray import?
-------------
PR: https://git.openjdk.java.net/jdk17/pull/137
More information about the core-libs-dev
mailing list