<AWT Dev> RFR: 8257853: Remove dependencies on JNF's JNI utility functions in AWT and 2D code

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Thu Dec 10 08:59:34 UTC 2020


On Mon, 7 Dec 2020 21:24:57 GMT, Phil Race <prr 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?

-------------

PR: https://git.openjdk.java.net/jdk/pull/1679


More information about the awt-dev mailing list