See gh-38508
This commit is contained in:
Johnny Lim
2023-11-23 08:43:16 +09:00
committed by Moritz Halbritter
parent f613ab89b9
commit f9f73aa146
7 changed files with 8 additions and 8 deletions

View File

@@ -814,7 +814,7 @@ public class NestedJarFile extends JarFile {
private volatile boolean closed;
protected RawZipDataInputStream(InputStream in) {
RawZipDataInputStream(InputStream in) {
super(in);
}

View File

@@ -60,7 +60,7 @@ class UrlJarFileFactory {
private Runtime.Version getVersion(URL url) {
// The standard JDK handler uses #runtime to indicate that the runtime version
// should be used. This unfortunately doesn't work for us as
// jdk.internal.loaderURLClassPath only adds the runtime fragment when the URL
// jdk.internal.loader.URLClassPath only adds the runtime fragment when the URL
// is using the internal JDK handler. We need to flip the default to use
// the runtime version. See gh-38050
return "base".equals(url.getRef()) ? JarFile.baseVersion() : JarFile.runtimeVersion();