From 3cad4223928911c73afd83350238a25c7c027348 Mon Sep 17 00:00:00 2001 From: Andres Luuk Date: Mon, 10 Apr 2017 17:18:07 +0300 Subject: [PATCH] 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. --- src/main/javassist/bytecode/ClassFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5