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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u20
    • 8u20
    • javafx
    • 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)

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: