Program: 67691
Project: 67691
Buggy source:
private void refreshValues(){
  resultList.clear();
  if (columnChooser.isEnabled()) {
    String queryExpr=null;
    for (Iterator iter=columnList.iterator(); iter.hasNext(); ) {
      ResultSetColumnHandle column=(ResultSetColumnHandle)iter.next();
      if (column.getColumnName().equals(columnChooser.getText())) {
        queryExpr=DEUtil.getResultSetColumnExpression(column.getColumnName());
        break;
      }
    }
    if (queryExpr == null) {
      return;
    }
    try {
      java.util.List modelValueList=SelectValueFetcher.getSelectValueList(queryExpr,getDataSetHandle(),false);
      if (modelValueList != null) {
        Iterator iter=modelValueList.iterator();
        DateFormatter formatter=new DateFormatter(ULocale.US);
        while (iter.hasNext()) {
          Object candiateValue=iter.next();
          if (candiateValue != null) {
            if (candiateValue instanceof java.sql.Date) {
              formatter.applyPattern("String_Node_Str");
              result=formatter.format((Date)candiateValue);
            }
 else             if (candiateValue instanceof java.sql.Time) {
              formatter.applyPattern("String_Node_Str");
              result=formatter.format((Date)candiateValue);
            }
 else             if (candiateValue instanceof Date) {
              formatter.applyPattern("String_Node_Str");
              result=formatter.format((Date)candiateValue);
            }
 else             result=String.valueOf(candiateValue);
          }
 else {
            result=nullValue;
            hasNullValue=true;
          }
          if (!resultList.contains(result)) {
            resultList.add(result);
          }
        }
      }
      filteValues();
    }
 catch (    BirtException e) {
      ExceptionHandler.handle(e);
    }
  }
 else {
    valueList.removeAll();
    valueList.deselectAll();
    updateButtons();
  }
}

Fixed version (ground truth):
private void refreshValues(){
  resultList.clear();
  if (columnChooser.isEnabled()) {
    String queryExpr=null;
    for (Iterator iter=columnList.iterator(); iter.hasNext(); ) {
      ResultSetColumnHandle column=(ResultSetColumnHandle)iter.next();
      if (column.getColumnName().equals(columnChooser.getText())) {
        queryExpr=DEUtil.getResultSetColumnExpression(column.getColumnName());
        break;
      }
    }
    if (queryExpr == null) {
      return;
    }
    try {
      java.util.List modelValueList=SelectValueFetcher.getSelectValueList(queryExpr,getDataSetHandle(),false);
      if (modelValueList != null) {
        Iterator iter=modelValueList.iterator();
        DateFormatter formatter=new DateFormatter(ULocale.US);
        while (iter.hasNext()) {
          Object candiateValue=iter.next();
          if (candiateValue != null) {
            if (expectedColumnDataType == DataType.SQL_DATE_TYPE && candiateValue instanceof Date) {
              formatter.applyPattern("String_Node_Str");
              result=formatter.format((Date)candiateValue);
            }
 else             if (expectedColumnDataType == DataType.SQL_TIME_TYPE && candiateValue instanceof Date) {
              formatter.applyPattern("String_Node_Str");
              result=formatter.format((Date)candiateValue);
            }
 else             if (expectedColumnDataType == DataType.DATE_TYPE && candiateValue instanceof Date) {
              formatter.applyPattern("String_Node_Str");
              result=formatter.format((Date)candiateValue);
            }
 else {
              result=String.valueOf(candiateValue);
            }
          }
 else {
            result=nullValue;
            hasNullValue=true;
          }
          if (!resultList.contains(result)) {
            resultList.add(result);
          }
        }
      }
      filteValues();
    }
 catch (    BirtException e) {
      ExceptionHandler.handle(e);
    }
  }
 else {
    valueList.removeAll();
    valueList.deselectAll();
    updateButtons();
  }
}