behavior of returned from MenuSelectionManager.defaultManager() object is inconsistent with spec

XMLWordPrintable

    • b116
    • x86
    • linux

      MenuSelectionManager.defaultManager() mathod return MenuSelectionManager instance.
      But instance behavior is inconsistent with spec.
      JPopupMenu implements MenuElement interface.
      setSelectedPath(MenuElement[] path) method throw NPE if path contains JPopupMenu.
      Find the test code in attachments.

      NPE Exception is not thrown if we use MenuSelectionManager's constructor instead defaultManager() to get MenuSelectionManager.

            Assignee:
            Alexandr Scherbatiy
            Reporter:
            Alexey Yambarshev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: