JDK-8257858 : [macOS]: Remove JNF dependency from libosxsecurity/KeystoreImpl.m
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-07
  • Updated: 2025-01-16
  • Resolved: 2021-02-03
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 b08Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
https://bugs.openjdk.java.net/browse/JDK-8257852 discusses removing
JNF dependencies from the desktop module.

It would be good to also remove the dependency from other areas

There are 3 kinds of uses of JNF here
1) JNF_COCOA_ENTER / JNF_COCOA_EXIT  - exception handling and object pool handling
2) JNFJavaToNSString  - string conversion utility 
3) JNF_CLASS_CACHE/JNF_MEMBER_CACHE/JNFCallVoidMethod  - JNI utils

once we've established a pattern in the desktop module then this code could just re-use that - but given it is only one usage in java.base it is very likely better to do it directly rather than create a shared dependency.

Comments
Fix request (11u) This is the first bp 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) This is the first bp of series of 8, to remove JNF dependency from jdk13u. Applies almost cleanly
07-04-2021

Fix request (15u) This is the first bp of series of 8, to remove JNF dependency from jdk15u. Applies cleanly
02-04-2021

Changeset: 4a8b5c16 Author: Weijun Wang <weijun@openjdk.org> Date: 2021-02-03 16:20:16 +0000 URL: https://git.openjdk.java.net/jdk/commit/4a8b5c16
03-02-2021