<AWT Dev> RFR: 8257853: Remove dependencies on JNF's JNI utility functions in AWT and 2D code
Vladimir Kempik
vkempik at openjdk.java.net
Thu Dec 10 10:00:38 UTC 2020
On Thu, 10 Dec 2020 08:56:43 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> This defines some macros to support declaring and initialising statically allocated instances of jclass, jmethodID and jfieldID
>> and changes many existing uses of JNF macros/functions to use these instead.
>> Then calls to JNFCall* and JNFNewObject - etc are updated to directly call JNI methods
>> JNI exception checking macros are added as needed.
>
> Wouldn't it have been nice to have a new file having same JNF macros so it will not result in changing any source code but just instead of mapping to apple provided JNF layer, we will map to our macro through JNF wrapper and link/unlink apple JNF lib based on version or so in makefile?
This siunds good, especially considering JEP-391, where we have to link ( at build time) with custom made JNF.framework and then provide jdk with JNF.framework in JAVA_HOME/lib
The alternative is to integrate JNF (bsd3 license) into openjdk.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1679
More information about the awt-dev
mailing list