Add method to obtain String for CONSTANT_Class_info in ClassDesc

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: