Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347752

Running RichTextArea demos via ant on JDK 24 prints warnings

XMLWordPrintable

    • 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

            angorya Andy Goryachev
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: