On Tue, 15 Oct 2024 03:18:09 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> While implementing [JDK-8339517](https://bugs.openjdk.org/browse/JDK-8339517) 
> to eliminate native access warnings by passing "--enable-native-access" for 
> the three JavaFX modules with native code (javafx.graphics, javafx.media, and 
> javafx.web), it was found  that the Swing interop code in javafx.swing calls 
> a JNI method defined in one of the native graphics libraries (prism-common) 
> directly
> 
> This means that even after 
> [JDK-8339517](https://bugs.openjdk.org/browse/JDK-8339517) is fixed, we still 
> get native access warnings when running any test that uses SwingNode.
> 
> This fixes the native access warning by making javafx.graphics module call 
> the native JNI and Swing-interop calls the static utility method in 
> javafx.graphics, in this case defined in PlatformImpl
> 
> All test.javafx.embed.swing SwingNode tests are running ok without any native 
> warning

This pull request has now been integrated.

Changeset: 9c31cb0c
Author:    Prasanta Sadhukhan <psadhuk...@openjdk.org>
URL:       
https://git.openjdk.org/jfx/commit/9c31cb0c696c9ec8bf71038f8f5f53633c457d04
Stats:     21 lines in 3 files changed: 11 ins; 2 del; 8 mod

8340005: Eliminate native access calls from javafx.swing

Reviewed-by: angorya, kcr

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

PR: https://git.openjdk.org/jfx/pull/1600

Reply via email to