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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b25

      As Claes mentioned in https://github.com/openjdk/jdk/pull/3571#discussion_r640555826 the loop in sun.reflect.misc.ReflectUtil.privateCheckPackageAccess() is redundant since getPackageName() will already return the package name of the innermost component type.

      The loop can be then removed.

            Assignee:
            Sergey Tsypanov
            Reporter:
            Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: