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.
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.
- csr for
-
JDK-8306700 Add method to obtain String for CONSTANT_Class_info in ClassDesc
-
- Closed
-
- relates to
-
JDK-8278863 Add method ClassDesc::ofInternalName
-
- Resolved
-
- links to
-
Review openjdk/jdk/13598