8132297: JDK9 build.tools.module.ImageBuilder does not filter out .bc files
Reviewed-by: alanb, chegar
--- a/jdk/make/src/classes/build/tools/module/ModuleArchive.java Tue Oct 06 13:49:41 2015 -0300
+++ b/jdk/make/src/classes/build/tools/module/ModuleArchive.java Tue Oct 06 13:20:21 2015 -0700
@@ -105,6 +105,7 @@
entries.addAll(stream
.filter(p -> !Files.isDirectory(p)
&& !classes.relativize(p).toString().startsWith("_the.")
+ && !classes.relativize(p).toString().endsWith(".bc")
&& !classes.relativize(p).toString().equals("javac_state"))
.sorted()
.map(p -> toEntry(p, classes, EntryType.CLASS_OR_RESOURCE))