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

Add method to obtain String for CONSTANT_Class_info in ClassDesc

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      Currently, ClassDesc doesn't have a convenience method to obtain a string representation for a CONSTANT_Class_info entry. Adding such a method would be convenient to users, and can allow caching instead of repeatedly calculating a String (which often requires extra allocations) to represent a ClassDesc.

      The tentative name of this API is internalName(), for classes and interfaces keep their internal names in CONSTANT_Class_info (while arrays keep their descriptors). Feel free to suggest alternatives.

      This API is forward compatible; if Valhalla decides to keep Q-descriptors for null-hostile types in CONSTANT_Class_info, then this API will return the Q-descriptors for those new types.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: