-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK16 changes for Hidden Classes #11321
Comments
I will look at this. |
In https://bugs.openjdk.java.net/browse/JDK-8256214, the new specification introduces the following new methods and updates few old methods:
Since we plan to move to OpenJDK MH (#7352) in JDK16, the above Java changes to J9 classes can be avoided. We can do minimal changes to get JDK16 builds re-enabled in the short term. |
I agree. I was planning to just add the missing bit ORIGINAL and the public API to resolve the compilation issue. But from #11312 (comment) I see you are already doing that. |
The new Lookup.ORIGINAL field (= 0x40) conflicts with Lookup.INTERNAL_PRIVILEGED. Since INTERNAL_PRIVILEGED is J9 specific, it is given a different value (= 0x80). In JDK16, defineHiddenClassWithClassData has changed to a public method; and the initOption is supplied by the caller instead of it always being true. Related: eclipse-openj9#11312 eclipse-openj9#11321 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
Since #11322 is merged, I think this can be closed. All the new changes here are in OpenJDK MH, which will be consumed by OpenJ9 in Java 16. |
Updated refs: Related commit: ibmruntimes/openj9-openjdk-jdk@1e8bd60 All is Java code. No native dependencies found. |
See https://bugs.openjdk.java.net/browse/JDK-8256214
Some changes to Lookup
The text was updated successfully, but these errors were encountered: