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

Alexander Zuev kizune at openjdk.java.net
Mon Dec 14 08:54:58 UTC 2020


On Sat, 12 Dec 2020 18:55:13 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 two additional commits since the last revision:
> 
>  - 8257853: Remove dependencies on JNF's JNI utility functions in AWT and 2D code
>  - 8257853: Remove dependencies on JNF's JNI utility functions in AWT and 2D code

src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m line 598:

> 596:         return NULL;
> 597:     }
> 598:     jobject comp = (*env)->GetObjectField(env, peer, jf_Target);

Do we really need to delete this method? It is used only once but it is quite useful for debugging purposes when one needs to check what view is assigned to an accessible component.

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

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


More information about the awt-dev mailing list