Skip to content

Commit

Permalink
add NoClassDefFoundError to list of problems that indicate we're on W…
Browse files Browse the repository at this point in the history
…indows
  • Loading branch information
jbellis committed Sep 29, 2023
1 parent 50e90aa commit 369f517
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ReaderSupplierFactory {
public static ReaderSupplier open(Path path) throws IOException {
try {
return new MMapReaderSupplier(path);
} catch (UnsatisfiedLinkError e) {
} catch (UnsatisfiedLinkError|NoClassDefFoundError e) {
if (Files.size(path) > Integer.MAX_VALUE) {
throw new RuntimeException("File sizes greater than 2GB are not supported on Windows--contributions welcome");
}
Expand Down

0 comments on commit 369f517

Please sign in to comment.