RFR: 8267921: Remove redundant loop from sun.reflect.misc.ReflectUtil.privateCheckPackageAccess()

Mandy Chung mchung at openjdk.java.net
Mon May 31 16:56:24 UTC 2021


On Mon, 31 May 2021 07:36:10 GMT, Сергей Цыпанов <github.com+10835776+stsypanov at openjdk.org> wrote:

> This a tiny follop-up of https://github.com/openjdk/jdk/pull/3571.
> 
> The loop in `sun.reflect.misc.ReflectUtil.privateCheckPackageAccess()` is redundant since `Class.getPackageName()` will already return the package name of the innermost component type.

Marked as reviewed by mchung (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/4268


More information about the core-libs-dev mailing list