]> source.dussan.org Git - aspectj.git/commitdiff
extra check...
authorAndy Clement <aclement@pivotal.io>
Thu, 7 Mar 2019 01:49:50 +0000 (17:49 -0800)
committerAndy Clement <aclement@pivotal.io>
Thu, 7 Mar 2019 01:49:50 +0000 (17:49 -0800)
weaver/src/main/java/org/aspectj/weaver/bcel/ClassPathManager.java

index b20911245f71a64fe53dd83a934604305fd4b07e..d617bbfa3a366ec6a272dbd9d65267bc5f46a147 100644 (file)
@@ -106,7 +106,9 @@ public class ClassPathManager {
                        }
                        try {
                                if (lc.endsWith(LangUtil.JRT_FS)) { // Java9
-                                       entries.add(new JImageEntry());
+                                       if (LangUtil.is19VMOrGreater()) {
+                                               entries.add(new JImageEntry());
+                                       }
                                } else {
                                        entries.add(new ZipFileEntry(f));
                                }