Skip to content
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

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Add support for Java 17 and update ASM to version 9.2 #180

merged 1 commit into from
Jul 23, 2021

Conversation

Stephan202
Copy link
Contributor

Copy link
Contributor Author

@Stephan202 Stephan202 left a 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"/>
Copy link
Contributor Author

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).
Copy link
Contributor Author

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).
Copy link
Contributor Author

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.

Comment on lines +15 to +19
# 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
Copy link
Contributor Author

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.

@uschindler
Copy link
Member

Looks fine as a start!

@uschindler uschindler merged commit df06185 into policeman-tools:main Jul 23, 2021
@uschindler
Copy link
Member

I will update the signatures files before release, but it is unlikely that something changes.

@Stephan202 Stephan202 deleted the improvement/jdk-17-support branch July 23, 2021 09:24
@uschindler uschindler added this to the 3.2 milestone Sep 14, 2021
@uschindler uschindler self-assigned this Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants