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

Replace use of Class::getPackage with Class::getPackageName

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Backports

        Description

        Class::getPackageName was added in JDK 9 for fast runtime package check and avoid the overhead of constructing Package objects.

        jdk.internal.reflect.ReflectionFactory and a couple other classes in JDK can be updated to use Class::getPackageName.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: