Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8267921

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: