aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2017-10-27 06:51:38 +0900
committerchibash <chiba@javassist.org>2017-10-27 06:51:38 +0900
commite41e0790c0cb073e9e2e30071afecfcdc4621d42 (patch)
tree414adf1522990ce228c0b098bc3cd3ccbfc9e65b
parentc9c209727daa0a56685ed2283b3ce9497b495a6c (diff)
downloadjavassist-3.22-old-style-source.tar.gz
javassist-3.22-old-style-source.zip
changes ClassPool#appendSystemPath(). The new implementation appends ClassClassPath when the JVM is earlier than 9.3.22-old-style-source
-rw-r--r--javassist.jarbin728963 -> 729051 bytes
-rw-r--r--src/main/javassist/ClassPoolTail.java8
2 files changed, 6 insertions, 2 deletions
diff --git a/javassist.jar b/javassist.jar
index 7d27f307..915b45a6 100644
--- a/javassist.jar
+++ b/javassist.jar
Binary files differ
diff --git a/src/main/javassist/ClassPoolTail.java b/src/main/javassist/ClassPoolTail.java
index 681c550e..1b580855 100644
--- a/src/main/javassist/ClassPoolTail.java
+++ b/src/main/javassist/ClassPoolTail.java
@@ -240,8 +240,12 @@ final class ClassPoolTail {
}
public ClassPath appendSystemPath() {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- return appendClassPath(new LoaderClassPath(cl));
+ if (javassist.bytecode.ClassFile.MAJOR_VERSION < javassist.bytecode.ClassFile.JAVA_9)
+ return appendClassPath(new ClassClassPath());
+ else {
+ ClassLoader cl = Thread.currentThread().getContextClassLoader();
+ return appendClassPath(new LoaderClassPath(cl));
+ }
}
public ClassPath insertClassPath(String pathname)