-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add support for Java 17 and update ASM to version 9.2 #180
Add support for Java 17 and update ASM to version 9.2 #180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize that JDK 17 isn't out yet, but hopefully this will allow us to hit the ground running once it does :)
@@ -64,6 +64,7 @@ | |||
<equals arg1="${-cleaned.specification.version}" arg2="14"/> | |||
<equals arg1="${-cleaned.specification.version}" arg2="15"/> | |||
<equals arg1="${-cleaned.specification.version}" arg2="16"/> | |||
<equals arg1="${-cleaned.specification.version}" arg2="17"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to follow ac754c4 as closely as possible.
# It is provided here for reference, but can easily regenerated by executing from the source folder of forbidden-apis: | ||
# $ ant generate-deprecated | ||
|
||
# This file contains all public, deprecated API signatures in Java version 17 (extracted from build 17-ea). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downloaded the OpenJDK early-access build today. Version details:
$ java -version
openjdk version "17-ea" 2021-09-14
OpenJDK Runtime Environment (build 17-ea+31-2664)
OpenJDK 64-Bit Server VM (build 17-ea+31-2664, mixed mode, sharing)
# It is provided here for reference, but can easily regenerated by executing from the source folder of forbidden-apis: | ||
# $ ant generate-internal | ||
|
||
# This file contains all internal packages listed in Security.getProperty("package.access") of Java version 17 (extracted from build 17-ea). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ Used the same version as mentioned above.
# These methods and classes should not be used by server classes (unsafe, no charset, no locale,...): | ||
|
||
# We only include 16 for now. | ||
# TODO: Scan Java 17 API for additional locale/charset/... violations! | ||
@includeBundled jdk-unsafe-16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied the jdk-unsafe-16.txt
file and modified it accordingly.
Looks fine as a start! |
I will update the signatures files before release, but it is unlikely that something changes. |
See: