On Mon, 31 May 2021 07:36:10 GMT, Сергей Цыпанов 
<github.com+10835776+stsypa...@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.

This pull request has now been integrated.

Changeset: c06db45f
Author:    Sergey Tsypanov <sergei.tsypa...@yandex.ru>
Committer: Mandy Chung <mch...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/c06db45fa77c8a90518d6ff023de6c46b7c89997
Stats:     4 lines in 1 file changed: 0 ins; 4 del; 0 mod

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

Reviewed-by: alanb, mchung

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

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

Reply via email to