Moved from SourceForge
http://sourceforge.net/tracker/index.php?func=detail&aid=1121232&group_id=48726&atid=453974:
Currently, removeMenu in the class MenuRepository does
not remove the MenuComponent because it is making a
call to Map.remove(MenuComponent) instead of
Map.remove(String) where String is a key in the Map.
Current code:
/**
* Allows easy removal of a menu by its name.
* @param name
*/
public void removeMenu(String name) {
if (menus.containsKey(name)) {
menus.remove(getMenu
(name));
}
}
Fixed code:
/**
* Allows easy removal of a menu by its name.
* @param name
*/
public void removeMenu(String name) {
menus.remove(name);
}