Program: 76417
Project: 76417
Buggy source:
/** 
 * A standard report, test feature of:  group, sort, filter.
 */
public void test1() throws Exception {
  String[] bindingNameGroup=new String[2];
  bindingNameGroup[0]="String_Node_Str";
  bindingNameGroup[1]="String_Node_Str";
  IBaseExpression[] bindingExprGroup=new IBaseExpression[2];
  bindingExprGroup[0]=new ScriptExpression("String_Node_Str");
  bindingExprGroup[1]=new ScriptExpression("String_Node_Str");
  GroupDefinition[] groupDefn=new GroupDefinition[]{new GroupDefinition("String_Node_Str"),new GroupDefinition("String_Node_Str")};
  groupDefn[0].setKeyExpression("String_Node_Str");
  groupDefn[1].setKeyExpression("String_Node_Str");
  String[] bindingNameSort=new String[1];
  bindingNameSort[0]="String_Node_Str";
  IBaseExpression[] bindingExprSort=new IBaseExpression[1];
  bindingExprSort[0]=new ScriptExpression("String_Node_Str");
  SortDefinition[] sortDefn=new SortDefinition[]{new SortDefinition()};
  sortDefn[0].setColumn("String_Node_Str");
  sortDefn[0].setSortDirection(ISortDefinition.SORT_DESC);
  String[] bindingNameFilter=new String[1];
  bindingNameFilter[0]="String_Node_Str";
  IBaseExpression[] bindingExprFilter=new IBaseExpression[1];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  FilterDefinition[] filterDefn=new FilterDefinition[]{new FilterDefinition(new ScriptExpression("String_Node_Str"))};
  String[] bindingNameRow=new String[6];
  bindingNameRow[0]="String_Node_Str";
  bindingNameRow[1]="String_Node_Str";
  bindingNameRow[2]="String_Node_Str";
  bindingNameRow[3]="String_Node_Str";
  bindingNameRow[4]="String_Node_Str";
  bindingNameRow[5]="String_Node_Str";
  IBaseExpression[] bindingExprRow=new IBaseExpression[6];
  bindingExprRow[0]=new ScriptExpression("String_Node_Str");
  bindingExprRow[1]=new ScriptExpression("String_Node_Str");
  bindingExprRow[2]=new ScriptExpression("String_Node_Str");
  bindingExprRow[3]=new ScriptExpression("String_Node_Str");
  bindingExprRow[4]=new ScriptExpression("String_Node_Str");
  bindingExprRow[5]=new ScriptExpression("String_Node_Str");
  createAndRunQuery(bindingNameGroup,bindingExprGroup,groupDefn,bindingNameSort,bindingExprSort,sortDefn,bindingNameFilter,bindingExprFilter,filterDefn,bindingNameRow,bindingExprRow);
  checkOutputFile();
}

Fixed version (ground truth):
/** 
 * A standard report, test feature of: group, sort, filter.
 */
public void test1() throws Exception {
  String[] bindingNameGroup=new String[2];
  bindingNameGroup[0]="String_Node_Str";
  bindingNameGroup[1]="String_Node_Str";
  IBaseExpression[] bindingExprGroup=new IBaseExpression[2];
  bindingExprGroup[0]=new ScriptExpression("String_Node_Str");
  bindingExprGroup[1]=new ScriptExpression("String_Node_Str");
  GroupDefinition[] groupDefn=new GroupDefinition[]{new GroupDefinition("String_Node_Str"),new GroupDefinition("String_Node_Str")};
  groupDefn[0].setKeyExpression("String_Node_Str");
  groupDefn[1].setKeyExpression("String_Node_Str");
  String[] bindingNameSort=new String[1];
  bindingNameSort[0]="String_Node_Str";
  IBaseExpression[] bindingExprSort=new IBaseExpression[1];
  bindingExprSort[0]=new ScriptExpression("String_Node_Str");
  SortDefinition[] sortDefn=new SortDefinition[]{new SortDefinition()};
  sortDefn[0].setColumn("String_Node_Str");
  sortDefn[0].setSortDirection(ISortDefinition.SORT_DESC);
  String[] bindingNameFilter=new String[1];
  bindingNameFilter[0]="String_Node_Str";
  IBaseExpression[] bindingExprFilter=new IBaseExpression[1];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  FilterDefinition[] filterDefn=new FilterDefinition[]{new FilterDefinition(new ScriptExpression("String_Node_Str"))};
  String[] bindingNameRow=new String[6];
  bindingNameRow[0]="String_Node_Str";
  bindingNameRow[1]="String_Node_Str";
  bindingNameRow[2]="String_Node_Str";
  bindingNameRow[3]="String_Node_Str";
  bindingNameRow[4]="String_Node_Str";
  bindingNameRow[5]="String_Node_Str";
  IBaseExpression[] bindingExprRow=new IBaseExpression[6];
  bindingExprRow[0]=new ScriptExpression("String_Node_Str");
  bindingExprRow[1]=new ScriptExpression("String_Node_Str");
  bindingExprRow[2]=new ScriptExpression("String_Node_Str");
  bindingExprRow[3]=new ScriptExpression("String_Node_Str");
  bindingExprRow[4]=new ScriptExpression("String_Node_Str");
  bindingExprRow[5]=new ScriptExpression("String_Node_Str");
  createAndRunQuery(bindingNameGroup,bindingExprGroup,groupDefn,bindingNameSort,bindingExprSort,sortDefn,bindingNameFilter,bindingExprFilter,filterDefn,bindingNameRow,bindingExprRow);
  checkOutputFile();
}