Duplicate :
|
|
Relates :
|
|
Relates :
|
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.
|