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
chore: Prepare for Java 14 #566
Conversation
According to https://www.oracle.com/technetwork/java/13-relnote-issues-5460548.html#JDK-8218875 the `null` parameter should be cast to `Classloader` to solve this.
@@ -94,7 +95,7 @@ public static boolean extractZipTo(final Path archive, final Path outputLocation | |||
if (Files.notExists(outputLocation)) { | |||
Files.createDirectories(outputLocation); | |||
} | |||
try (FileSystem fileSystem = FileSystems.newFileSystem(archive, null)) { | |||
try (FileSystem fileSystem = FileSystems.newFileSystem(archive, ((ClassLoader) null))) { |
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.
This had me scratching my head for a minute before I checked the commit messages. Then that not only explained it but included a link to the relevant spot in the release notes. 👍
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.
Changes look straightforward and it should be pretty obvious to both developers and CI if it's broken. 👍
Update Gradle to the latest release 6.3 with support for Java 14 and fixes a compile error.
In addition, switches the CI to use Java 14.
The launcher still builds and runs with Java 11 after this PR.