8131136: java/awt/font/JNICheck/JNICheck.sh issue warning on core-libs code

Reviewed-by: aivanov, prr, serb
This commit is contained in:
Daniel Jeliński 2025-06-24 06:09:17 +00:00
parent 9af36b13c5
commit dbbfa76b73
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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