aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2016-06-27 14:26:13 -0700
committerAndy Clement <aclement@pivotal.io>2016-06-27 14:26:13 -0700
commitfa03c791aeb9a4d16c9f0d87e2fe6702e08e0411 (patch)
treee913d6ed0d46f0f9ee002c8630da4ba2c82de8ba /weaver
parent386fedf3f7902893df8c4a0ba47dab60c6720740 (diff)
downloadaspectj-fa03c791aeb9a4d16c9f0d87e2fe6702e08e0411.tar.gz
aspectj-fa03c791aeb9a4d16c9f0d87e2fe6702e08e0411.zip
Change to support new packaging of modules in Java9
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/ClassPathManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/ClassPathManager.java b/weaver/src/org/aspectj/weaver/bcel/ClassPathManager.java
index 9c2af9137..ee315172f 100644
--- a/weaver/src/org/aspectj/weaver/bcel/ClassPathManager.java
+++ b/weaver/src/org/aspectj/weaver/bcel/ClassPathManager.java
@@ -38,6 +38,7 @@ import java.util.zip.ZipFile;
import org.aspectj.bridge.IMessageHandler;
import org.aspectj.bridge.MessageUtil;
+import org.aspectj.util.LangUtil;
import org.aspectj.weaver.BCException;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.WeaverMessages;
@@ -100,9 +101,9 @@ public class ClassPathManager {
return;
}
try {
- if (lc.endsWith(".jimage")) {
+ if (lc.endsWith(LangUtil.JRT_FS)) {
// Java9
- entries.add(new JImageEntry(f));
+ entries.add(new JImageEntry(new File(f.getParentFile()+File.separator+"lib"+File.separator+"modules")));
} else {
entries.add(new ZipFileEntry(f));
}