Re: RFR: 8339517: Add --enable-native-access flag when running tests [v3]

2024-09-13 Thread Ambarish Rapte
On Thu, 12 Sep 2024 12:51:27 GMT, Kevin Rushforth wrote: >> When running JavaFX tests and apps with JDK 24, we now get illegal access >> warnings of the following form: >> >> >> WARNING: A restricted method in java.lang.System has been called >> WARNING: java.lang.System::load has been called

Re: RFR: 8339517: Add --enable-native-access flag when running tests [v3]

2024-09-12 Thread Kevin Rushforth
On Thu, 12 Sep 2024 12:51:27 GMT, Kevin Rushforth wrote: >> When running JavaFX tests and apps with JDK 24, we now get illegal access >> warnings of the following form: >> >> >> WARNING: A restricted method in java.lang.System has been called >> WARNING: java.lang.System::load has been called

Re: RFR: 8339517: Add --enable-native-access flag when running tests [v2]

2024-09-12 Thread Kevin Rushforth
On Wed, 11 Sep 2024 22:26:06 GMT, Kevin Rushforth wrote: > This turned out to be a test bug. When using a custom `ModuleLayer` to load > classes, a test (or application) needs to call > `ModuleLayer.Controller::enableNativeAccess`. So the follow-up bug will be to > do this in those tests. > >

Re: RFR: 8339517: Add --enable-native-access flag when running tests [v3]

2024-09-12 Thread Kevin Rushforth
> When running JavaFX tests and apps with JDK 24, we now get illegal access > warnings of the following form: > > > WARNING: A restricted method in java.lang.System has been called > WARNING: java.lang.System::load has been called by > com.sun.glass.utils.NativeLibLoader in module javafx.graphi

Re: RFR: 8339517: Add --enable-native-access flag when running tests [v2]

2024-09-11 Thread Kevin Rushforth
On Wed, 11 Sep 2024 22:16:23 GMT, Kevin Rushforth wrote: >> When running JavaFX tests and apps with JDK 24, we now get illegal access >> warnings of the following form: >> >> >> WARNING: A restricted method in java.lang.System has been called >> WARNING: java.lang.System::load has been called

Re: RFR: 8339517: Add --enable-native-access flag when running tests [v2]

2024-09-11 Thread Kevin Rushforth
> When running JavaFX tests and apps with JDK 24, we now get illegal access > warnings of the following form: > > > WARNING: A restricted method in java.lang.System has been called > WARNING: java.lang.System::load has been called by > com.sun.glass.utils.NativeLibLoader in module javafx.graphi

Re: RFR: 8339517: Add --enable-native-access flag when running tests

2024-09-11 Thread Kevin Rushforth
On Wed, 11 Sep 2024 14:42:19 GMT, Kevin Rushforth wrote: > When running JavaFX tests and apps with JDK 24, we now get illegal access > warnings of the following form: > > > WARNING: A restricted method in java.lang.System has been called > WARNING: java.lang.System::load has been called by >

RFR: 8339517: Add --enable-native-access flag when running tests

2024-09-11 Thread Kevin Rushforth
When running JavaFX tests and apps with JDK 24, we now get illegal access warnings of the following form: WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by com.sun.glass.utils.NativeLibLoader in module javafx.graphics (file:buil