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

JavaFX Warning message: A terminally deprecated method in sun.misc.Unsafe has been called

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      JDK 24.0.1
      Netbeans 25

      A DESCRIPTION OF THE PROBLEM :
      WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
      WARNING: sun.misc.Unsafe::allocateMemory has been called by com.sun.marlin.OffHeapArray (file:/J:/Installs/JavaFX/javafx-sdk-24.0.1/lib/javafx.graphics.jar)
      WARNING: Please consider reporting this to the maintainers of class com.sun.marlin.OffHeapArray
      WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release


      REGRESSION : Last worked in version 23

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The message above gives me no lead on where to look for the problem, so I do not know how to reproduce it. The code that originates this message has 15 or so different dialogs that it uses.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An on-screen dialog
      ACTUAL -
      The message (in the description) is output to System.err (and hence is red).

      ---------- BEGIN SOURCE ----------
      The class that produces this message is almost 2500 lines, and it appears to turn up when the class is loaded (rather than when one of its methods is called to execute, but this may be a false interpretation.
      ---------- END SOURCE ----------

            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: