On Thu, 27 Apr 2023 17:58:02 GMT, Mandy Chung <mch...@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

Reply via email to