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

JFR: Use Class.forPrimitiveName(String)

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 23
    • 23
    • hotspot
    • None
    • jfr
    • b24

    Description

      When the jdk.jfr.internal.MetadataReader class creates annotation elements, it needs to map between the textual name, i.e. "int", to a primitive array class, i.e int[]. Instead of a large switch statement, this can now be done with Class.forPrimitiveName(String) introduced in JDK 22 and the java.lang.reflect.Array class.

      Attachments

        Issue Links

          Activity

            People

              egahlin Erik Gahlin
              egahlin Erik Gahlin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: