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

JFR: Use Class.forPrimitiveName(String)

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: