-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 17
-
Fix Version/s: 17
-
Component/s: client-libs
-
Labels:
-
Resolved In Build:b07
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8261700 | 11.0.12-oracle | Dukebot | P3 | Resolved | Fixed | master |
JNF has a number of APIs that deal with JNI References :
These : which add no value to the direct JNI call and can be directly replaced
JNFNewGlobalRef
JNFDeleteGlobalRef
JNFNewWeakGlobalRef
JNFDeleteWeakGlobalRef
And these which just require a bit of extra handling because they create Cocoa class instances that will ensure the Java Refs are cleared when the carrier object is freed.
JNFJObjectWrapper
JNFWeakJObjectWrapper
There seem to be simpler ways to free all the cases we have.
These : which add no value to the direct JNI call and can be directly replaced
JNFNewGlobalRef
JNFDeleteGlobalRef
JNFNewWeakGlobalRef
JNFDeleteWeakGlobalRef
And these which just require a bit of extra handling because they create Cocoa class instances that will ensure the Java Refs are cleared when the carrier object is freed.
JNFJObjectWrapper
JNFWeakJObjectWrapper
There seem to be simpler ways to free all the cases we have.
- backported by
-
JDK-8261700 [macOS] Remove desktop module dependencies on JNF Reference APIs
-
- Resolved
-
- relates to
-
JDK-8257852 ☂ : Remove JNF dependencies from java.desktop module
-
- Closed
-