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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 17
    • core-libs
    • None
    • b25

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: