Fix crash when running on UNC (windows) network share.

See: https://bugs.openjdk.java.net/browse/JDK-8178726
This commit is contained in:
modmuss50 committed 2021-11-12 16:44:51 +00:00
1 parent f49c13481b
commit 21b9d4714f
1 file changed
+1 -1
@@ -99,7 +99,7 @@ public final class MainAttributes {
}
if ("file".equals(codeSource.getScheme())) {
File file = new File(codeSource);
File file = Paths.get(codeSource).toFile();
if (file.isFile()) {
Attributes attributes = MainAttributes.getJarAttributes(file);