[jdk17] Integrated: JDK-8266269: Lookup::accessClass fails with IAE when accessing an arrayClass with a protected inner class as component class

Mandy Chung mchung at openjdk.java.net
Sat Jun 26 18:31:11 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

This pull request has now been integrated.

Changeset: 6eb734a6
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk17/commit/6eb734a60fdd982c94dd152a803809f148bff582
Stats:     102 lines in 5 files changed: 84 ins; 2 del; 16 mod

8266269: Lookup::accessClass fails with IAE when accessing an arrayClass with a protected inner class as component class

Reviewed-by: chegar, alanb

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

PR: https://git.openjdk.java.net/jdk17/pull/137


More information about the core-libs-dev mailing list