From 51277d5cb573a72b991b5f40ca89e723f13b2e26 Mon Sep 17 00:00:00 2001 From: Babneet Singh Date: Thu, 12 Sep 2024 08:37:30 -0700 Subject: [PATCH] Fix -Djdk.reflect.useDirectMethodHandle=false See https://github.com/eclipse-openj9/openj9/issues/20155 for more details on the failure and the fix. Fixes: https://github.com/eclipse-openj9/openj9/issues/20155 Signed-off-by: Babneet Singh --- .../share/classes/java/lang/invoke/MethodHandleImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java b/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java index 5b114176cba..f0f662b24ff 100644 --- a/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodHandleImpl.java @@ -25,7 +25,7 @@ /* * =========================================================================== - * (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved + * (c) Copyright IBM Corp. 2022, 2024 All Rights Reserved * =========================================================================== */ @@ -533,6 +533,7 @@ boolean viewAsTypeChecks(MethodType newType, boolean strict) { return true; } + @Hidden @Override public Object invokeWithArguments(Object... arguments) throws Throwable { MethodType type = this.type();