RFR: 8230501: Class data support for hidden classes [v4]
Mandy Chung
mchung at openjdk.java.net
Wed Nov 18 18:20:03 UTC 2020
On Wed, 18 Nov 2020 17:26:02 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> IIUC classData can be used for an original lookup that is not produced by the result of defineHiddenClassWithClassData, but in such cases the class data will always be null.
Yes that's the case. I see some clarification would help. I added the following in the spec of `classData` and `classDataAt`:
* <p> A hidden class created by {@link Lookup#defineHiddenClass(byte[], boolean, Lookup.ClassOption...)
* Lookup::defineHiddenClass} and non-hidden classes have no class data.
* {@code null} is returned if this method is called on the lookup object
* on these classes.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1171
More information about the core-libs-dev
mailing list