Skip to content

Commit

Permalink
Open JAR in MR mode in all situations (#378)
Browse files Browse the repository at this point in the history
Currently it is only opened as an MR JAR when loaded from the filesystem due to an oversight.
  • Loading branch information
dmlloyd authored Nov 25, 2024
1 parent f9c24f5 commit 7dcb378
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
import java.util.zip.ZipFile;

/**
* A resource loader which corresponds to a JAR file.
Expand All @@ -24,7 +25,7 @@ public final class JarFileResourceLoader implements ResourceLoader {
*/
public JarFileResourceLoader(final Path jarPath) throws IOException {
this.base = jarPath.toUri().toURL();
jarFile = new JarFile(jarPath.toFile());
jarFile = new JarFile(jarPath.toFile(), true, ZipFile.OPEN_READ, JarFile.runtimeVersion());
}

/**
Expand Down

0 comments on commit 7dcb378

Please sign in to comment.