From 6ac5643212bd76db6120c62079a2b47a4da8d5cd Mon Sep 17 00:00:00 2001 From: Seppe Volkaerts Date: Sun, 18 Apr 2021 22:54:18 +0200 Subject: [PATCH] Fix ambiguous newFileSystem method when using Java 13. --- .../java/com/velocitypowered/proxy/util/FileSystemUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java b/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java index 167ee47b0..353e638fd 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java @@ -48,7 +48,7 @@ public class FileSystemUtils { .getProtectionDomain().getCodeSource().getLocation().getPath()); if (file.isFile()) { // jar - try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), null)) { + try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), (ClassLoader) null)) { Path toVisit = fileSystem.getPath(path.toString()); if (Files.exists(toVisit)) { consumer.accept(toVisit);