java.lang.constant.ClassDesc and TypeDescriptor for hidden class??
Brian Goetz
brian.goetz at oracle.com
Thu Apr 2 18:11:47 UTC 2020
>
> 2. public String descriptorString()
> Returns the type descriptor string for this class.
>
> This method returns String, *not* an Optional. This is the main
> method in question what to do with hidden class.
>> Three options:
>> a) throws an exception
>> b) returns null
>> c) returns `La/b/C.0x1234;`
>
> Any other options to handle Class::descriptorString()?
>
In this case, (c) seems reasonable; the TypeDescriptor.OfField interface
does not say anything about suitability for embedding in a constant
pool, resolution with class loaders, etc.
More information about the valhalla-dev
mailing list