Skip to content

Commit

Permalink
Consider module-info.class as a resource and do not try backporting it
Browse files Browse the repository at this point in the history
Fixes #122
  • Loading branch information
luontola committed Dec 27, 2017
2 parents f6e2d0d + 03f7c2d commit 84f372a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ Version History

- Fixed running Retrolambda under Java 9
([Issue #137](https://github.com/orfjackal/retrolambda/issues/137))
- Consider `module-info.class` as a resource and do not try backporting it
([Issue #122](https://github.com/orfjackal/retrolambda/issues/122))

### Retrolambda 2.5.1 (2017-02-23)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
protected abstract void visitResource(Path relativePath, byte[] content) throws IOException;

private static boolean isJavaClass(Path file) {
return file.getFileName().toString().endsWith(".class");
String fileName = file.getFileName().toString();
return fileName.endsWith(".class") && !fileName.equals("module-info.class");
}
}

0 comments on commit 84f372a

Please sign in to comment.