Polish
See gh-38508
This commit is contained in:
committed by
Moritz Halbritter
parent
f613ab89b9
commit
f9f73aa146
@@ -814,7 +814,7 @@ public class NestedJarFile extends JarFile {
|
||||
|
||||
private volatile boolean closed;
|
||||
|
||||
protected RawZipDataInputStream(InputStream in) {
|
||||
RawZipDataInputStream(InputStream in) {
|
||||
super(in);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user