JDK-8259343 : [macOS] Update JNI error handling in Cocoa code.
  • Type: Bug
  • Component: client-libs
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-01-06
  • Updated: 2025-01-13
  • Resolved: 2021-01-12
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 11 JDK 13 JDK 15 JDK 17
11.0.12-oracleFixed 13.0.8Fixed 15.0.4Fixed 17 b05Fixed
Related Reports
Relates :  
Relates :  
Description
Update the error handling introduced in
https://bugs.openjdk.java.net/browse/JDK-8257853 to
1) Add more calls to CHECK_EXCEPTION
2) Add more logging when there is a JNI lookup problem or an exception from a JNI method call
3) In case of such errors throw an NSException to cause prompt reporting of the errors
Comments
Fix request (11u) This is the part 3 of series, to remove JNF dependency from jdk11u. Applies almost cleanly. Also needed for parity with oracle. Review link https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2021-May/006232.html
18-05-2021

Fix request (13u): Important prerequest for JNF-removal patches. Part 4/8. Applies almost cleanly
08-04-2021

Fix request (15u): Important prerequest for JNF-removal patches. Part 4/8. Applies cleanly
02-04-2021

Changeset: d6a2105b Author: Phil Race <prr@openjdk.org> Date: 2021-01-12 20:19:44 +0000 URL: https://git.openjdk.java.net/jdk/commit/d6a2105b
12-01-2021