Re-enable multi-release plugin JARs (#9001)

This commit is contained in:
Emily
2023-03-19 11:50:13 -03:00
parent 40b2d389d2
commit 5f6566b549
4 changed files with 4 additions and 23 deletions

View File

@@ -5069,7 +5069,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ try {
+ context = this.checkUpdate(context);
+
+ JarFile file = new JarFile(context.toFile());
+ JarFile file = new JarFile(context.toFile(), true, JarFile.OPEN_READ, JarFile.runtimeVersion());
+ PluginFileType<?, ?> type = PluginFileType.guessType(file);
+ if (type == null) {
+ throw new IllegalArgumentException(source + " is not a valid plugin file, cannot load a plugin from it!");