Buggy code:
public class JMeterMenuBar extends JMenuBar implements LocaleChangeListener { private static final long serialVersionUID = 240L ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private JMenu fileMenu ; private JMenuItem file_save_as ; private JMenuItem file_selection_as ; private JMenuItem file_revert ; private JMenuItem file_load ; private List < JComponent > file_load_recent_files ; private JMenuItem file_merge ; private JMenuItem file_exit ; private JMenuItem file_close ; private JMenu editMenu ; private JMenu edit_add ; private JMenu runMenu ; private JMenuItem run_start ; private JMenuItem run_start_no_timers ; private JMenu remote_start ; private JMenuItem remote_start_all ; private Collection < JMenuItem > remote_engine_start ; private JMenuItem run_stop ; private JMenuItem run_shut ; private JMenu remote_stop ; private JMenu remote_shut ; private JMenuItem remote_stop_all ; private JMenuItem remote_shut_all ; private Collection < JMenuItem > remote_engine_stop ; private Collection < JMenuItem > remote_engine_shut ; private JMenuItem run_clear ; private JMenuItem run_clearAll ; private JMenu optionsMenu ; private JMenu lafMenu ; private JMenuItem sslManager ; private JMenu helpMenu ; private JMenuItem help_about ; private String [ ] remoteHosts ; private JMenu remote_exit ; private JMenuItem remote_exit_all ; private Collection < JMenuItem > remote_engine_exit ; private JMenu searchMenu ; public static final String SYSTEM_LAF = "System" ; public static final String CROSS_PLATFORM_LAF = "CrossPlatform" ; public JMeterMenuBar ( ) { } public void setFileSaveEnabled ( boolean enabled ) { } public void setFileLoadEnabled ( boolean enabled ) { } public void setFileRevertEnabled ( boolean enabled ) { } public void setProjectFileLoaded ( String file ) { } public void setEditEnabled ( boolean enabled ) { } public void setEditAddMenu ( JMenu menu ) { } public void setEditMenu ( JPopupMenu menu ) { } public void setEditAddEnabled ( boolean enabled ) { } public void createMenuBar ( ) { } private void makeHelpMenu ( ) { } private void makeOptionsMenu ( ) { } private static class LangMenuHelper { final ActionRouter actionRouter = ActionRouter . getInstance ( ) ; final JMenu languageMenu ; LangMenuHelper ( JMenu _languageMenu ) { } void addLang ( String locale ) { } } public static String [ ] getLanguages ( ) { } static JMenu makeLanguageMenu ( ) { } private void makeRunMenu ( ) { } private void makeEditMenu ( ) { } private void makeFileMenu ( ) { } private void makeSearchMenu ( ) { searchMenu = JMeterMenuBar . makeMenuRes ( "menu_search" ) ; <START_BUG> JMenuItem search = JMeterMenuBar . makeMenuItemRes ( "menu_search" , SEARCH_TREE ) ; <END_BUG> searchMenu . add ( search ) ; searchMenu . setEnabled ( true ) ; JMenuItem searchReset = JMeterMenuBar . makeMenuItemRes ( "menu_search_reset" , SEARCH_RESET ) ; searchMenu . add ( searchReset ) ; searchMenu . setEnabled ( true ) ; } public void setRunning ( boolean running , String host ) { } @ Override public void setEnabled ( boolean enable ) { } private void getRemoteItems ( ) { } public void localeChanged ( LocaleChangeEvent event ) { } public static UIManager . LookAndFeelInfo [ ] getAllLAFs ( ) { } private void updateMenuElement ( MenuElement menu ) { } private static boolean isResource ( String actionCommand ) { } private static JMenu makeMenuRes ( String resource ) { } private static JMenu makeMenuRes ( String resource , int mnemonic ) { } private static JMenuItem makeMenuItemNoRes ( String label , String actionCommand ) { } private static JMenuItem makeMenuItemRes ( String resource , String actionCommand ) { } private static JMenuItem makeMenuItemRes ( String resource , String actionCommand , KeyStroke keyStroke ) { } private static JMenuItem makeMenuItemRes ( String resource , int mnemonic , String actionCommand ) { } private static JMenuItem makeMenuItemRes ( String resource , int mnemonic , String actionCommand , KeyStroke keyStroke ) { } private static JCheckBoxMenuItem makeCheckBoxMenuItemRes ( String resource , String actionCommand ) { } private static JCheckBoxMenuItem makeCheckBoxMenuItemRes ( String resource , String actionCommand , KeyStroke keyStroke ) { } }

Fix:
JMenuItem search = JMeterMenuBar . makeMenuItemRes ( "menu_search" , 'F' , SEARCH_TREE , KeyStrokes . SEARCH_TREE ) ;