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

[Mac] handleOnMenuValidation may not be called when using system menu bar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Environment:

      MacOS
      java version "1.8.0_20-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b15, mixed mode)

      Description

      Start simple test case attached.

      1) If you invoke the Action menu item using the menu bar :
      => the onMenuValidation event handler is invoked => OK
      Then, if you invoke the Edit menu using the menu bar :
      => the onMenuValidation event handler is invoked again and the undo menu item is updated => OK

      2) Now do the same but using accelerators.
      If you invoke the Action menu item using the keyboard (cmd + A) :
      => the onMenuValidation event handler is still invoked => OK
      Then, if you invoke the Edit menu using the menu bar :
      => the onMenuValidation event handler is NOT invoked and the undo menu item is NOT updated => BUG
      Invoking a second time works.

      Note that if you do not use the system menu bar, then there is no issue.
      This is a regression in 8u20.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              anthony Anthony Petrov (Inactive)
              Reporter:
              slions Sandra Lions-piron
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: