-
Bug
-
Resolution: Fixed
-
P3
-
6
-
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.
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.