]> source.dussan.org Git - javassist.git/commitdiff
Update ClassFile.java 130/head
authorAndres Luuk <andres.luuk@zeroturnaround.com>
Mon, 10 Apr 2017 14:18:07 +0000 (17:18 +0300)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2017 14:18:07 +0000 (17:18 +0300)
A fix for older JDK8 versions: https://bugs.openjdk.java.net/browse/JDK-8041920
This caused random failures a little time after startup. Reported now so that when we upgrade javassist for JDK9 then we would not have to fork this class.

src/main/javassist/bytecode/ClassFile.java

index d97ac7357d602ca40ac059818c67672e64b23060..80abe7be251936ba0d7e608c8d8c65f9a9776a1a 100644 (file)
@@ -146,7 +146,7 @@ public final class ClassFile {
             ver = JAVA_5;
             Class.forName("java.util.zip.DeflaterInputStream");
             ver = JAVA_6;
-            Class.forName("java.lang.invoke.CallSite");
+            Class.forName("java.lang.invoke.CallSite", false, ClassLoader.getSystemClassLoader());
             ver = JAVA_7;
             Class.forName("java.util.function.Function");
             ver = JAVA_8;