Buggy code:
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 assertions ; private static List listeners ; private static List nonTestElements ; private static List postProcessors ; private static List preProcessors ; private MenuFactory ( ) { } public static String doNothing ( ) { } public static void addEditMenu ( JPopupMenu menu , boolean removable ) { } public static void addFileMenu ( JPopupMenu menu ) { } 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 getDefaultAssertionMenu ( ) { } public static JPopupMenu getDefaultExtractorMenu ( ) { } 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 ) { } public static JMenuItem makeMenuItem ( String label , String name , String actionCommand , KeyStroke accel ) { } private static void initializeMenus ( ) { try { List guiClasses = ClassFinder . findClassesThatExtend ( JMeterUtils . getSearchPaths ( ) , new Class [ ] { JMeterGUIComponent . class , TestBean . class } ) ; MenuFactory . timers = new LinkedList ( ) ; MenuFactory . controllers = new LinkedList ( ) ; MenuFactory . samplers = new LinkedList ( ) ; MenuFactory . configElements = new LinkedList ( ) ; MenuFactory . assertions = new LinkedList ( ) ; MenuFactory . listeners = new LinkedList ( ) ; MenuFactory . postProcessors = new LinkedList ( ) ; MenuFactory . preProcessors = new LinkedList ( ) ; MenuFactory . nonTestElements = new LinkedList ( ) ; MenuFactory . menuMap . put ( MenuFactory . TIMERS , MenuFactory . timers ) ; MenuFactory . menuMap . put ( MenuFactory . ASSERTIONS , MenuFactory . assertions ) ; MenuFactory . menuMap . put ( MenuFactory . CONFIG_ELEMENTS , MenuFactory . configElements ) ; MenuFactory . menuMap . put ( MenuFactory . CONTROLLERS , MenuFactory . controllers ) ; MenuFactory . menuMap . put ( MenuFactory . LISTENERS , MenuFactory . listeners ) ; MenuFactory . menuMap . put ( MenuFactory . NON_TEST_ELEMENTS , MenuFactory . nonTestElements ) ; MenuFactory . menuMap . put ( MenuFactory . SAMPLERS , MenuFactory . samplers ) ; MenuFactory . menuMap . put ( MenuFactory . POST_PROCESSORS , MenuFactory . postProcessors ) ; MenuFactory . menuMap . put ( MenuFactory . PRE_PROCESSORS , MenuFactory . preProcessors ) ; Collections . sort ( guiClasses ) ; Iterator iter = guiClasses . iterator ( ) ; while ( iter . hasNext ( ) ) { String name = ( ( String ) ( iter . next ( ) ) ) ; JMeterGUIComponent item ; try { Class c = Class . forName ( name ) ; if ( TestBean . class . isAssignableFrom ( c ) ) { item = new TestBeanGUI ( c ) ; } else { item = ( ( JMeterGUIComponent ) ( c . newInstance ( ) ) ) ; } } catch ( Throwable e ) { <START_BUG> MenuFactory . log . info ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>instantiate<seq2seq4repair_space>" + name ) , e ) ; <END_BUG> continue ; } if ( ( MenuFactory . elementsToSkip . contains ( name ) ) || ( MenuFactory . elementsToSkip . contains ( item . getStaticLabel ( ) ) ) ) { MenuFactory . log . debug ( ( "Skipping<seq2seq4repair_space>" + name ) ) ; continue ; } else { MenuFactory . elementsToSkip . add ( name ) ; } Collection categories = item . getMenuCategories ( ) ; if ( categories == null ) { MenuFactory . log . debug ( ( name + "<seq2seq4repair_space>participates<seq2seq4repair_space>in<seq2seq4repair_space>no<seq2seq4repair_space>menus." ) ) ; continue ; } if ( categories . contains ( MenuFactory . TIMERS ) ) { MenuFactory . timers . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . POST_PROCESSORS ) ) { MenuFactory . postProcessors . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . PRE_PROCESSORS ) ) { MenuFactory . preProcessors . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . CONTROLLERS ) ) { MenuFactory . controllers . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . SAMPLERS ) ) { MenuFactory . samplers . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . NON_TEST_ELEMENTS ) ) { MenuFactory . nonTestElements . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . LISTENERS ) ) { MenuFactory . listeners . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . CONFIG_ELEMENTS ) ) { MenuFactory . configElements . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; } if ( categories . contains ( MenuFactory . ASSERTIONS ) ) { MenuFactory . assertions . add ( new MenuInfo ( item . getStaticLabel ( ) , name ) ) ; }

Fix:
MenuFactory . log . debug ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>instantiate<seq2seq4repair_space>" + name ) , e ) ;