Program: 135013
Project: 135013
Buggy source:
/** 
 * Builds the menu bar
 */
private void setupMenuBar(){
  loggingClientJMenuBar=new javax.swing.JMenuBar();
  loggingClientJMenuBar.setName("String_Node_Str");
  fileMenu=new javax.swing.JMenu();
  fileMenu.setName("String_Node_Str");
  fileMenu.setText("String_Node_Str");
  fileMenu.addMenuListener(eventHandler);
  fileMenu.add(getConnectMenuItem());
  ImageIcon icon=new ImageIcon(LogTypeHelper.class.getResource("String_Node_Str"));
  autoReconnectMI=new JCheckBoxMenuItem("String_Node_Str",icon,false);
  autoReconnectMI.addActionListener(eventHandler);
  fileMenu.add(autoReconnectMI);
  fileMenu.addSeparator();
  fileMenu.add(getLoadMenuItem());
  fileMenu.add(getLoadURLMenuItem());
  fileMenu.add(getLoadDBMenuItem());
  fileMenu.add(getSaveFileMenuItem());
  fileMenu.add(getClearAllMenuItem());
  fileMenu.addSeparator();
  fileMenu.add(getExitMenuItem());
  loggingClientJMenuBar.add(fileMenu);
  viewMenu=new javax.swing.JMenu();
  viewMenu.setName("String_Node_Str");
  viewMenu.setText("String_Node_Str");
  viewMenu.addMenuListener(eventHandler);
  viewToolbarMI=new JCheckBoxMenuItem("String_Node_Str",true);
  viewToolbarMI.addActionListener(eventHandler);
  viewMenu.add(viewToolbarMI);
  viewDetailedInfoMI=new JCheckBoxMenuItem("String_Node_Str",true);
  viewDetailedInfoMI.addActionListener(eventHandler);
  viewMenu.add(viewDetailedInfoMI);
  viewStatusAreaMI=new JCheckBoxMenuItem("String_Node_Str",true);
  viewStatusAreaMI.addActionListener(eventHandler);
  viewMenu.add(viewStatusAreaMI);
  viewMenu.addSeparator();
  viewMenu.add(getFieldsMenuItem());
  shortDateViewMI=new JCheckBoxMenuItem("String_Node_Str",true);
  shortDateViewMI.addActionListener(eventHandler);
  viewMenu.add(shortDateViewMI);
  viewMenu.addSeparator();
  viewMenu.add(setFiltersMenuItem());
  viewMenu.addSeparator();
  ImageIcon statIcon=new ImageIcon(LogTypeHelper.class.getResource("String_Node_Str"));
  statisticsMenuItem=new JMenuItem("String_Node_Str",statIcon);
  statisticsMenuItem.addActionListener(eventHandler);
  viewMenu.add(statisticsMenuItem);
  viewErrorLogMI=new JMenuItem("String_Node_Str");
  viewErrorLogMI.addActionListener(eventHandler);
  viewMenu.add(viewErrorLogMI);
  loggingClientJMenuBar.add(viewMenu);
  searchMenu=new JMenu();
  searchMenu.setName("String_Node_Str");
  searchMenu.setText("String_Node_Str");
  searchMenu.addMenuListener(eventHandler);
  ImageIcon searchIcon=new ImageIcon(LogTypeHelper.class.getResource("String_Node_Str"));
  searchMenuItem=new JMenuItem("String_Node_Str",searchIcon);
  searchMenuItem.addActionListener(eventHandler);
  searchMenuItem.setAccelerator(KeyStroke.getKeyStroke('S',Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  searchMenu.add(searchMenuItem);
  searchNextMenuItem=new JMenuItem("String_Node_Str");
  searchNextMenuItem.setAccelerator(KeyStroke.getKeyStroke('N',Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  searchNextMenuItem.addActionListener(eventHandler);
  searchNextMenuItem.setEnabled(false);
  searchMenu.add(searchNextMenuItem);
  loggingClientJMenuBar.add(searchMenu);
  expertMenu=new JMenu();
  expertMenu.setName("String_Node_Str");
  expertMenu.setText("String_Node_Str");
  suspendMI=new JCheckBoxMenuItem("String_Node_Str",false);
  suspendMI.addActionListener(eventHandler);
  expertMenu.add(suspendMI);
  prefsMI=new JMenuItem("String_Node_Str");
  prefsMI.addActionListener(eventHandler);
  loggingClientJMenuBar.add(expertMenu);
}

Fixed version (ground truth):
/** 
 * Builds the menu bar
 */
private void setupMenuBar(){
  loggingClientJMenuBar=new javax.swing.JMenuBar();
  loggingClientJMenuBar.setName("String_Node_Str");
  fileMenu=new javax.swing.JMenu();
  fileMenu.setName("String_Node_Str");
  fileMenu.setText("String_Node_Str");
  fileMenu.addMenuListener(eventHandler);
  fileMenu.add(getConnectMenuItem());
  ImageIcon icon=new ImageIcon(LogTypeHelper.class.getResource("String_Node_Str"));
  autoReconnectMI=new JCheckBoxMenuItem("String_Node_Str",icon,false);
  autoReconnectMI.addActionListener(eventHandler);
  fileMenu.add(autoReconnectMI);
  fileMenu.addSeparator();
  fileMenu.add(getLoadMenuItem());
  fileMenu.add(getLoadURLMenuItem());
  fileMenu.add(getLoadDBMenuItem());
  fileMenu.add(getSaveFileMenuItem());
  fileMenu.add(getClearAllMenuItem());
  fileMenu.addSeparator();
  fileMenu.add(getExitMenuItem());
  loggingClientJMenuBar.add(fileMenu);
  viewMenu=new javax.swing.JMenu();
  viewMenu.setName("String_Node_Str");
  viewMenu.setText("String_Node_Str");
  viewMenu.addMenuListener(eventHandler);
  viewToolbarMI=new JCheckBoxMenuItem("String_Node_Str",true);
  viewToolbarMI.addActionListener(eventHandler);
  viewMenu.add(viewToolbarMI);
  viewDetailedInfoMI=new JCheckBoxMenuItem("String_Node_Str",true);
  viewDetailedInfoMI.addActionListener(eventHandler);
  viewMenu.add(viewDetailedInfoMI);
  viewStatusAreaMI=new JCheckBoxMenuItem("String_Node_Str",true);
  viewStatusAreaMI.addActionListener(eventHandler);
  viewMenu.add(viewStatusAreaMI);
  viewMenu.addSeparator();
  viewMenu.add(getFieldsMenuItem());
  shortDateViewMI=new JCheckBoxMenuItem("String_Node_Str",true);
  shortDateViewMI.addActionListener(eventHandler);
  viewMenu.add(shortDateViewMI);
  viewMenu.addSeparator();
  viewMenu.add(setFiltersMenuItem());
  viewMenu.addSeparator();
  ImageIcon statIcon=new ImageIcon(LogTypeHelper.class.getResource("String_Node_Str"));
  statisticsMenuItem=new JMenuItem("String_Node_Str",statIcon);
  statisticsMenuItem.addActionListener(eventHandler);
  viewMenu.add(statisticsMenuItem);
  viewErrorLogMI=new JMenuItem("String_Node_Str");
  viewErrorLogMI.addActionListener(eventHandler);
  viewMenu.add(viewErrorLogMI);
  loggingClientJMenuBar.add(viewMenu);
  searchMenu=new JMenu();
  searchMenu.setName("String_Node_Str");
  searchMenu.setText("String_Node_Str");
  searchMenu.addMenuListener(eventHandler);
  ImageIcon searchIcon=new ImageIcon(LogTypeHelper.class.getResource("String_Node_Str"));
  searchMenuItem=new JMenuItem("String_Node_Str",searchIcon);
  searchMenuItem.addActionListener(eventHandler);
  searchMenuItem.setAccelerator(KeyStroke.getKeyStroke('S',Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  searchMenu.add(searchMenuItem);
  searchNextMenuItem=new JMenuItem("String_Node_Str");
  searchNextMenuItem.setAccelerator(KeyStroke.getKeyStroke('N',Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
  searchNextMenuItem.addActionListener(eventHandler);
  searchNextMenuItem.setEnabled(false);
  searchMenu.add(searchNextMenuItem);
  loggingClientJMenuBar.add(searchMenu);
  expertMenu=new JMenu();
  expertMenu.setName("String_Node_Str");
  expertMenu.setText("String_Node_Str");
  suspendMI=new JCheckBoxMenuItem("String_Node_Str",false);
  suspendMI.addActionListener(eventHandler);
  expertMenu.add(suspendMI);
  prefsMI=new JMenuItem("String_Node_Str");
  prefsMI.addActionListener(eventHandler);
  expertMenu.add(prefsMI);
  loggingClientJMenuBar.add(expertMenu);
}