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

Nonexistent notifyQuit method referred from iOS GlassHelper.m

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: openjfx14
    • Fix Version/s: openjfx14
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      iOS

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: