aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPoolTail.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-07-31 11:03:51 +0900
committerchibash <chiba@javassist.org>2016-07-31 11:03:51 +0900
commit74e404b12225696bdd9d634d1f93172ff439b6b9 (patch)
tree65a57fa09913b6f901842dc49cb9f924f4cddf8e /src/main/javassist/ClassPoolTail.java
parent2321430bd34e0e576435e2f16b3736f5ce7e2053 (diff)
downloadjavassist-74e404b12225696bdd9d634d1f93172ff439b6b9.tar.gz
javassist-74e404b12225696bdd9d634d1f93172ff439b6b9.zip
adds ModuleClassPath.java
Diffstat (limited to 'src/main/javassist/ClassPoolTail.java')
-rw-r--r--src/main/javassist/ClassPoolTail.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/javassist/ClassPoolTail.java b/src/main/javassist/ClassPoolTail.java
index e2ace76e..7e62a861 100644
--- a/src/main/javassist/ClassPoolTail.java
+++ b/src/main/javassist/ClassPoolTail.java
@@ -234,8 +234,9 @@ final class ClassPoolTail {
}
public ClassPath appendSystemPath() {
- appendClassPath(new ClassClassPath());
- return appendClassPath(new ClassClassPath(CtClass.class));
+ ClassLoader cl = Thread.currentThread().getContextClassLoader();
+ appendClassPath(new LoaderClassPath(cl));
+ return appendClassPath(new ModuleClassPath());
}
public ClassPath insertClassPath(String pathname)