This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new e187172216 Work around weird spotbugs crash e187172216 is described below commit e187172216096bba0d93bb6b651c95deb20e6550 Author: remm <r...@apache.org> AuthorDate: Fri Apr 11 14:55:33 2025 +0200 Work around weird spotbugs crash --- .../apache/tomcat/util/openssl/openssl_h_Compatibility.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/java/org/apache/tomcat/util/openssl/openssl_h_Compatibility.java b/java/org/apache/tomcat/util/openssl/openssl_h_Compatibility.java index f7322de3ca..81148f9693 100644 --- a/java/org/apache/tomcat/util/openssl/openssl_h_Compatibility.java +++ b/java/org/apache/tomcat/util/openssl/openssl_h_Compatibility.java @@ -296,17 +296,9 @@ public class openssl_h_Compatibility { * } */ public static int ENGINE_register_all_complete() { - class Holder { - static final FunctionDescriptor DESC = FunctionDescriptor.of( - openssl_h.C_INT ); - - static final MethodHandle MH = Linker.nativeLinker().downcallHandle( - openssl_h.findOrThrow("ENGINE_register_all_complete"), - DESC); - } - var mh$ = Holder.MH; try { - return (int) mh$.invokeExact(); + return (int) Linker.nativeLinker().downcallHandle(openssl_h.findOrThrow("ENGINE_register_all_complete"), + FunctionDescriptor.of(JAVA_INT)).invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org