RFR: 8220607 Draft JEP: Hidden Classes

Mandy Chung mandy.chung at oracle.com
Fri Dec 6 03:15:26 UTC 2019



On 12/5/19 6:23 PM, David Holmes wrote:
>> Should be "will". I have to remind myself why I wrote "may" at that 
>> time (it has been quite some time ago).
>
> It's unclear to me from that text whether this is referring to the 
> augmented name of the hidden class ie. com.example.Foo/1234, or the 
> name that may be present in the byte array. If the former then LE will 
> be thrown. If the latter then LE may be thrown as you may have a 
> different classfile using the same name.
>

Thanks.  Now reading the context around this sentence, I used "may" 
intentionally.

This is indeed unclear.   A class file can never have a symbolic 
reference to "com.example.foo/1234" since the descriptor is in internal 
form.    If it attempts to reference a class name 
"com.example.foo/1234".replace(".", "/") or "com/example/foo" - a class 
of that name may or may not be found.


> BTW typo: "no difference" -> "no different" 

Fixed.

Mandy


More information about the valhalla-dev mailing list