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

Nonexistent notifyQuit method referred from iOS GlassHelper.m

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx14
    • jfx14
    • javafx
    • aarch64
    • iOS

      GlassHelper.m for iOS contains the public method ApplicationNotifyQuitMethod(), that tries to find via reflection the notifyQuit method in com.sun.glass.ui.Application.

      But this method notifyQuit doesn't exist in that class.

      When it is called, the method is not found, and the logger prints an error message. However, running with GraalVM's native-image there is also an exception, as the method is not found:

      java.lang.NoSuchMethodError: com.sun.glass.ui.Application.notifyQuit()V

      It is possible that the intended method was in fact notifyWillQuit.
      Note that, for instance, Mac has ApplicationNotifyWillQuitMethod.

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: