On Wed, 18 Nov 2020 17:26:02 GMT, Paul Sandoz <[email protected]> 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