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

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Thu Dec 17 09:54:59 UTC 2020


On Mon, 14 Dec 2020 21:31:15 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.
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8257853: Remove dependencies on JNF's JNI utility functions in AWT and 2D code

src/java.desktop/macosx/native/libawt_lwawt/awt/ApplicationDelegate.m line 293:

> 291:     //fprintf(stderr,"jm_handleOpenURL\n");
> 292:     JNIEnv *env = [ThreadUtilities getJNIEnv];
> 293:     jstring jURL = JNFNSToJavaString(env, url);

Don't we need to remove this JNFNSToJavaString dependancy?

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

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


More information about the awt-dev mailing list