Program: 76043
Project: 76043
Buggy source:
/** 
 * Set the value in the entry with the given name. The second argument must be a string that can be parsed to the proper type for the given entry, or an exception is thrown. Note that this does NOT trigger the notification of listeners, and intended to allow a way to set the query to reflect the current state.
 * @param name The name used to identify the entry (when calling get).
 * @param value The value to set the entry to.
 * @exception NoSuchElementException If there is no item with thespecified name.  Note that this is a runtime exception, so it need not be declared explicitly.
 * @exception IllegalArgumentException If the value does not parseto the appropriate type.
 */
public void set(String name,String value) throws NoSuchElementException, IllegalArgumentException {
  Object result=_entries.get(name);
  if (result == null) {
    throw new NoSuchElementException("String_Node_Str" + name + "String_Node_Str");
  }
  if (result instanceof JTextField) {
    ((JTextField)result).setText(value);
  }
 else   if (result instanceof JTextArea) {
    ((JTextArea)result).setText(value);
  }
 else   if (result instanceof JRadioButton) {
    Boolean flag=new Boolean(value);
    setBoolean(name,flag.booleanValue());
  }
 else   if (result instanceof JSlider) {
    Integer parsed=new Integer(value);
    ((JSlider)result).setValue(parsed.intValue());
  }
 else   if (result instanceof JComboBox) {
    ((JComboBox)result).setSelectedItem(value);
  }
 else   if (result instanceof JRadioButton[]) {
    JRadioButton[] buttons=(JRadioButton[])result;
    for (int i=0; i < buttons.length; i++) {
      if (value.equals(buttons[i].getText())) {
        buttons[i].setSelected(true);
      }
 else {
        buttons[i].setSelected(false);
      }
    }
  }
 else {
    throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str" + result.getClass());
  }
}

Fixed version (ground truth):
/** 
 * Set the value in the entry with the given name. The second argument must be a string that can be parsed to the proper type for the given entry, or an exception is thrown. Note that this does NOT trigger the notification of listeners, and intended to allow a way to set the query to reflect the current state.
 * @param name The name used to identify the entry (when calling get).
 * @param value The value to set the entry to.
 * @exception NoSuchElementException If there is no item with thespecified name.  Note that this is a runtime exception, so it need not be declared explicitly.
 * @exception IllegalArgumentException If the value does not parseto the appropriate type.
 */
public void set(String name,String value) throws NoSuchElementException, IllegalArgumentException {
  Object result=_entries.get(name);
  if (result == null) {
    throw new NoSuchElementException("String_Node_Str" + name + "String_Node_Str");
  }
  if (result instanceof JTextField) {
    ((JTextField)result).setText(value);
  }
 else   if (result instanceof JTextArea) {
    ((JTextArea)result).setText(value);
  }
 else   if (result instanceof JRadioButton) {
    Boolean flag=new Boolean(value);
    setBoolean(name,flag.booleanValue());
  }
 else   if (result instanceof JSlider) {
    Integer parsed=new Integer(value);
    ((JSlider)result).setValue(parsed.intValue());
  }
 else   if (result instanceof JComboBox) {
    ((JComboBox)result).setSelectedItem(value);
  }
 else   if (result instanceof JRadioButton[]) {
    JRadioButton[] buttons=(JRadioButton[])result;
    for (int i=0; i < buttons.length; i++) {
      if (value.equals(buttons[i].getText())) {
        buttons[i].setSelected(true);
      }
 else {
        buttons[i].setSelected(false);
      }
    }
  }
 else {
    throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str" + result.getClass());
  }
  _previous.put(name,value);
}