changeset 22844:8c12a9c538d2

ignore .jimage files on CTW class path that do not exist
author Doug Simon <doug.simon@oracle.com>
date Mon, 19 Oct 2015 16:32:20 +0200
parents ae8a63a7aa9e
children 39cf11c62720
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java	Fri Oct 16 13:54:56 2015 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java	Mon Oct 19 16:32:20 2015 +0200
@@ -511,6 +511,11 @@
                     cpe = new JarClassPathEntry(entry);
                 } else if (entry.endsWith(".jimage")) {
                     assert JAVA_VERSION.compareTo("1.9") >= 0;
+                    if (!new File(entry).isFile()) {
+                        println("CompileTheWorld : Skipped classes in " + entry);
+                        println();
+                        continue;
+                    }
                     cpe = new ImageClassPathEntry(entry);
                 } else {
                     if (!new File(entry).isDirectory()) {