Program: 76764
Project: 76764
Buggy source:
/** 
 * Test feature of aggregation expression
 */
public void test_FilteWithTopN() throws Exception {
  String[] bindingNameFilter=new String[3];
  bindingNameFilter[0]="String_Node_Str";
  bindingNameFilter[1]="String_Node_Str";
  bindingNameFilter[2]="String_Node_Str";
  IBaseExpression[] bindingExprFilter=new IBaseExpression[3];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[1]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[2]=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");
  GroupDefinition[] groupDefn=null;
  SortDefinition[] sortDefn=null;
  String[] bindingNameFilter1=new String[1];
  bindingNameFilter[0]="String_Node_Str";
  IBaseExpression[] bindingExprFilter1=new IBaseExpression[1];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  FilterDefinition[] filters=new FilterDefinition[]{new FilterDefinition(new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_TOP_N,"String_Node_Str"))};
  createAndRunQuery(null,null,null,null,null,null,bindingNameFilter,bindingExprFilter,filters,bindingNameRow,bindingExprRow);
}

Fixed version (ground truth):
/** 
 * Test feature of aggregation expression
 */
public void test_FilteWithTopN() throws Exception {
  String[] bindingNameFilter=new String[3];
  bindingNameFilter[0]="String_Node_Str";
  bindingNameFilter[1]="String_Node_Str";
  bindingNameFilter[2]="String_Node_Str";
  IBaseExpression[] bindingExprFilter=new IBaseExpression[3];
  bindingExprFilter[0]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[1]=new ScriptExpression("String_Node_Str");
  bindingExprFilter[2]=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");
  FilterDefinition[] filters=new FilterDefinition[]{new FilterDefinition(new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_TOP_N,"String_Node_Str"))};
  createAndRunQuery(null,null,null,null,null,null,bindingNameFilter,bindingExprFilter,filters,bindingNameRow,bindingExprRow);
}