JDK-8232137 : tools/jar tests with -Xcheck:jni: WARNING in native method: JNI call made without checking exceptions when required to from CallLongMethodV
  • Type: Bug
  • Component: tools
  • Sub-Component: jar
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2019-10-10
  • Updated: 2019-12-10
  • Resolved: 2019-12-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14Resolved
Related Reports
Relates :  
Description
If you run tools/jar tests with -Xcheck:jni, it would yield lots of warnings like:

$ CONF=linux-x86_64-server-fastdebug make images run-test TEST=tools/jar TEST_VM_OPTS="-Xcheck:jni"
...
[2019-10-10 20:48:01,701] Agent[17]: stdout: WARNING in native method: JNI call made without checking exceptions when required to from CallLongMethodV
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	at com.sun.java.util.jar.pack.NativeUnpack.start(java.base@14-internal/Native Method)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	- locked <0x00000000ff3ffa58> (a com.sun.java.util.jar.pack.NativeUnpack)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	at com.sun.java.util.jar.pack.NativeUnpack.run(java.base@14-internal/NativeUnpack.java:199)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	at com.sun.java.util.jar.pack.NativeUnpack.run(java.base@14-internal/NativeUnpack.java:248)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	at com.sun.java.util.jar.pack.UnpackerImpl.unpack(java.base@14-internal/UnpackerImpl.java:115)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	- locked <0x00000000ff3fd498> (a com.sun.java.util.jar.pack.UnpackerImpl)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	at com.sun.java.util.jar.pack.UnpackerImpl.unpack(java.base@14-internal/UnpackerImpl.java:147)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	- locked <0x00000000ff3fd498> (a com.sun.java.util.jar.pack.UnpackerImpl)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	at sun.tools.jar.Main.run(jdk.jartool@14-internal/Main.java:343)
[2019-10-10 20:48:01,701] Agent[17]: stdout: 	- locked <0x00000000ff4deda8> (a sun.tools.jar.Main)
[2019-10-10 20:48:01,702] Agent[17]: stdout: 	at sun.tools.jar.JarToolProvider.run(jdk.jartool@14-internal/JarToolProvider.java:37)
[2019-10-10 20:48:01,702] Agent[17]: stdout: 	at DeprecateOptionN.jar(DeprecateOptionN.java:52)
[2019-10-10 20:48:01,702] Agent[17]: stdout: 	at DeprecateOptionN.normalizeWithWarning(DeprecateOptionN.java:74)
[20
Comments
The code involved in the stack is removed from JDK14 per JDK-8234542
10-12-2019