Buggy code:
public class MenuFactory { private static transient Logger log = Hierarchy . getDefaultHierarchy ( ) . getLoggerFor ( "jmeter.gui" ) ; public static final String TIMERS = "menu_timer" ; public static final String CONTROLLERS = "menu_logic_controller" ; public static final String SAMPLERS = "menu_generative_controller" ; public static final String CONFIG_ELEMENTS = "menu_config_element" ; public static final String MODIFIERS = "menu_modifiers" ; public static final String RESPONSE_BASED_MODIFIERS = "menu_response_based_modifiers" ; public static final String ASSERTIONS = "menu_assertions" ; public static final String NON_TEST_ELEMENTS = "menu_non_test_elements" ; public static final String LISTENERS = "menu_listener" ; private static Map menuMap = new HashMap ( ) ; private static Set elementsToSkip = new HashSet ( ) ; private static List timers ; private static List controllers ; private static List samplers ; private static List configElements ; private static List modifiers ; private static List responseBasedModifiers ; private static List assertions ; private static List listeners ; private static List nonTestElements ; private static JMenu timerMenu ; private static JMenu controllerMenu ; private static JMenu generativeControllerMenu ; private static JMenu listenerMenu ; private static JMenu ModifierMenu ; private static JMenu ResponseBasedModifierMenu ; private static JMenu assertionMenu ; private static JMenu configMenu ; private static JMenu insertControllerMenu ; public MenuFactory ( ) { } public static String doNothing ( ) { } public static void addEditMenu ( JPopupMenu menu , boolean removable ) { } public static void addFileMenu ( JPopupMenu menu ) { MenuFactory . addSeparator ( menu ) ; menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "open" ) , "Open" , "open" ) ) ; <START_BUG> menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "save" ) , "Save" , "save" ) ) ; <END_BUG> JMenuItem disabled = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "disable" ) , "Disable" , "disable" ) ; JMenuItem enabled = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "enable" ) , "Enable" , "enable" ) ; boolean isEnabled = org . apache . jmeter . gui . GuiPackage . getInstance ( ) . getTreeListener ( ) . getCurrentNode ( ) . isEnabled ( ) ; if ( isEnabled ) { disabled . setEnabled ( true ) ; enabled . setEnabled ( false ) ; } else { disabled . setEnabled ( false ) ; enabled . setEnabled ( true ) ; } menu . add ( enabled ) ; menu . add ( disabled ) ; MenuFactory . addSeparator ( menu ) ; menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "help" ) , "Help" , "help" ) ) ; } public static JMenu makeMenus ( String [ ] categories , String label , String actionCommand ) { } public static JPopupMenu getDefaultControllerMenu ( ) { } public static JPopupMenu getDefaultSamplerMenu ( ) { } public static JPopupMenu getDefaultConfigElementMenu ( ) { } public static JPopupMenu getDefaultVisualizerMenu ( ) { } public static JPopupMenu getDefaultTimerMenu ( ) { } public static JPopupMenu getDefaultModifierMenu ( ) { } public static JPopupMenu getDefaultResponseBasedModifierMenu ( ) { } public static JPopupMenu getDefaultAssertionMenu ( ) { } public static JMenu makeMenu ( String category , String actionCommand ) { } public static JMenu makeMenu ( Collection menuInfo , String actionCommand , String menuName ) { } public static void setEnabled ( JMenu menu ) { } public static JMenuItem makeMenuItem ( String label , String name , String actionCommand ) { } private static void initializeMenus ( ) { } private static void addSeparator ( JPopupMenu menu ) { } }

Fix:
menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "save" ) , "Save" , "save_as" ) ) ;