]> source.dussan.org Git - javassist.git/commitdiff
changes ClassPool#appendSystemPath(). The new implementation appends ClassClassPath... 3.22-old-style-source
authorchibash <chiba@javassist.org>
Thu, 26 Oct 2017 21:51:38 +0000 (06:51 +0900)
committerchibash <chiba@javassist.org>
Thu, 26 Oct 2017 21:51:38 +0000 (06:51 +0900)
javassist.jar
src/main/javassist/ClassPoolTail.java

index 7d27f3072f41c6aff958b2e00d1631da31793dc1..915b45a65b2690835fd53202f6e5f6c3f95a1abc 100644 (file)
Binary files a/javassist.jar and b/javassist.jar differ
index 681c550ea778cd4d3dee3901b25fdaa32f1e08e3..1b580855884ac2afc14ca8fec640c0dcffbce8d9 100644 (file)
@@ -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)