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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b116
    • CPU:
      x86
    • OS:
      linux

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: