diff --git a/src/java.base/share/native/libnet/net_util.c b/src/java.base/share/native/libnet/net_util.c index 9c0f14b0d90..b61ead11dd5 100644 --- a/src/java.base/share/native/libnet/net_util.c +++ b/src/java.base/share/native/libnet/net_util.c @@ -74,7 +74,7 @@ DEF_JNI_OnLoad(JavaVM *vm, void *reserved) s = (*env)->NewStringUTF(env, "java.net.preferIPv4Stack"); CHECK_NULL_RETURN(s, JNI_VERSION_1_2); preferIPv4Stack = (*env)->CallStaticBooleanMethod(env, iCls, mid, s); - + JNU_CHECK_EXCEPTION_RETURN(env, JNI_VERSION_1_2); /* * Since we have initialized and loaded the socket library we will * check now whether we have IPv6 on this platform and if the diff --git a/test/jdk/java/awt/font/JNICheck/JNICheck.sh b/test/jdk/java/awt/font/JNICheck/JNICheck.sh index cc019e72d56..5464a5e3fc1 100644 --- a/test/jdk/java/awt/font/JNICheck/JNICheck.sh +++ b/test/jdk/java/awt/font/JNICheck/JNICheck.sh @@ -1,6 +1,6 @@ #!/bin/ksh -p # -# Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -49,7 +49,7 @@ else fi $JAVA_HOME/bin/java ${TESTVMOPTS} \ - -cp "${CP}" -Xcheck:jni JNICheck | grep -v SIG | grep -v Signal | grep -v Handler | grep -v jsig | grep -v CallStatic > "${CP}"/log.txt + -cp "${CP}" -Xcheck:jni JNICheck | grep -v SIG | grep -v Signal | grep -v Handler | grep -v jsig > "${CP}"/log.txt # any messages logged may indicate a failure. if [ -s "${CP}"/log.txt ]; then