From eca9069c8f670a2ef29f9be97c029810165110c2 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 6 Mar 2019 17:49:50 -0800 Subject: [PATCH] extra check... --- .../main/java/org/aspectj/weaver/bcel/ClassPathManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weaver/src/main/java/org/aspectj/weaver/bcel/ClassPathManager.java b/weaver/src/main/java/org/aspectj/weaver/bcel/ClassPathManager.java index b20911245..d617bbfa3 100644 --- a/weaver/src/main/java/org/aspectj/weaver/bcel/ClassPathManager.java +++ b/weaver/src/main/java/org/aspectj/weaver/bcel/ClassPathManager.java @@ -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)); } -- 2.39.5