JFR: Use Class.forPrimitiveName(String)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: 23
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: