8132297: JDK9 build.tools.module.ImageBuilder does not filter out .bc files
authormchung
Tue, 06 Oct 2015 13:20:21 -0700
changeset 32880 1f610b093f5e
parent 32879 7b999f099d87
child 32881 5f9d335c43c3
8132297: JDK9 build.tools.module.ImageBuilder does not filter out .bc files Reviewed-by: alanb, chegar
jdk/make/src/classes/build/tools/module/ModuleArchive.java
--- 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))