From fc5b9746a8ebcf8e0e942cd688344b580e5ceccd Mon Sep 17 00:00:00 2001 From: Josef Eisl Date: Fri, 27 Sep 2024 16:29:33 +0200 Subject: [PATCH] svm: work around "JDK-8340831: Simplify simple validation for class definition in MethodHandles.Lookup" [GR-58553] --- .../src/com/oracle/svm/agent/BreakpointInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java b/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java index 4e9c6cd214cf..d5f365b33912 100644 --- a/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java +++ b/substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java @@ -1739,7 +1739,7 @@ private static boolean allocateInstance(JNIEnvironment jni, JNIObjectHandle thre }; private static final BreakpointSpecification[] CLASS_PREDEFINITION_BREAKPOINT_SPECIFICATIONS = { - brk("java/lang/invoke/MethodHandles$Lookup$ClassFile", "", "(Ljava/lang/String;I[B)V", BreakpointInterceptor::onMethodHandleClassFileInit), + optionalBrk("java/lang/invoke/MethodHandles$Lookup$ClassFile", "", "(Ljava/lang/String;I[B)V", BreakpointInterceptor::onMethodHandleClassFileInit), }; private static BreakpointSpecification brk(String className, String methodName, String signature, BreakpointHandler handler) {