-
Bug
-
Resolution: Fixed
-
P4
-
jfx24
-
b25
To reproduce, build JavaFX with JDK 24, and then:
cd apps/samples/RichTextAreaDemo
ant jar
ant run-richeditor-demo
You will see the following warnings:
[exec] WARNING: A restricted method in java.lang.System has been called
[exec] WARNING: java.lang.System::load has been called by com.sun.glass.utils.NativeLibLoader in module javafx.graphics (file:/C:/Users/kcr/dev/javafx/jfx-tmp/jfx/rt/apps/samples/RichTextAreaDemo/../../../build/sdk/lib/javafx.graphics.jar)
[exec] WARNING: Use --enable-native-access=javafx.graphics to avoid a warning for callers in this module
[exec] WARNING: Restricted methods will be blocked in a future release unless native access is enabled
...
[exec] WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
[exec] WARNING: sun.misc.Unsafe::allocateMemory has been called by com.sun.marlin.OffHeapArray (file:/C:/Users/kcr/dev/javafx/jfx-tmp/jfx/rt/apps/samples/RichTextAreaDemo/../../../build/sdk/lib/javafx.graphics.jar)
[exec] WARNING: Please consider reporting this to the maintainers of class com.sun.marlin.OffHeapArray
[exec] WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
cd apps/samples/RichTextAreaDemo
ant jar
ant run-richeditor-demo
You will see the following warnings:
[exec] WARNING: A restricted method in java.lang.System has been called
[exec] WARNING: java.lang.System::load has been called by com.sun.glass.utils.NativeLibLoader in module javafx.graphics (file:/C:/Users/kcr/dev/javafx/jfx-tmp/jfx/rt/apps/samples/RichTextAreaDemo/../../../build/sdk/lib/javafx.graphics.jar)
[exec] WARNING: Use --enable-native-access=javafx.graphics to avoid a warning for callers in this module
[exec] WARNING: Restricted methods will be blocked in a future release unless native access is enabled
...
[exec] WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
[exec] WARNING: sun.misc.Unsafe::allocateMemory has been called by com.sun.marlin.OffHeapArray (file:/C:/Users/kcr/dev/javafx/jfx-tmp/jfx/rt/apps/samples/RichTextAreaDemo/../../../build/sdk/lib/javafx.graphics.jar)
[exec] WARNING: Please consider reporting this to the maintainers of class com.sun.marlin.OffHeapArray
[exec] WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
- relates to
-
JDK-8345121 JavaFX: WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
- Open
-
JDK-8339517 Add --enable-native-access flag when running tests
- Resolved
-
JDK-8345127 Add --sun-misc-unsafe-memory-access=allow when running tests until JDK-8334137 is fixed
- Resolved
-
JDK-8347362 RichTextArea Demo Apps Build Script
- Resolved
-
JDK-8347744 JavaFX applications must use `--enable-native-access`
- Closed
- links to
-
Commit(master) openjdk/jfx/c692192d
-
Review(master) openjdk/jfx/1678
(2 links to)