Skip to content

Commit

Permalink
fix: Filter out certain classpath entries for compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Sep 13, 2021
1 parent c6248be commit af09b0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/me/coley/recaf/compiler/JavacCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private String getClassPathText() {
Stream<Path> paths = Files.walk(getCompilerClasspathDirectory());
paths = Stream.concat(paths, Files.walk(getCompilerGeneratedClasspathDirectory()));
paths.filter(p -> p.toString().toLowerCase().endsWith(".jar"))
.filter(p -> p.toFile().length() < 10_000_000)
.forEach(p -> sb.append(separator).append(IOUtil.toString(p)));
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit af09b0e

Please sign in to comment.