RFR: 8306697: Add method to obtain String for CONSTANT_Class_info in ClassDesc [v2]
Chen Liang
liach at openjdk.org
Thu Apr 27 18:18:53 UTC 2023
On Thu, 27 Apr 2023 17:58:02 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> `ClassDesc.ofClassDescString("I")` can't differentiate if it's a primitive or an internal name of class `I`.
It is always treated as an internal name when it is without a `[` prefix. if class `I` in the unnamed package is stored in a `CONSTANT_Class_info`, then it is class(utf8("I")) in the constant pool, or `LI;` as a descriptor. I will add an API note informing users not to pass non-CONSTANT_Class_info strings into this factory.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13598#issuecomment-1526114117
More information about the core-libs-dev
mailing list