From: Andres Luuk Date: Mon, 10 Apr 2017 14:18:07 +0000 (+0300) Subject: Update ClassFile.java X-Git-Tag: rel_3_22_0_cr2~3^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F130%2Fhead;p=javassist.git Update ClassFile.java 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. --- diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index d97ac735..80abe7be 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -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;