Program: 73288
Project: 73288
Buggy source:
public void testToDate1(){
  String[] testStrings={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  Calendar calendar=Calendar.getInstance();
  Date[] resultDates={null,null,null,null,null,null,null,null,null,null};
  calendar.clear();
  calendar.set(1997,0,1);
  resultDates[0]=calendar.getTime();
  calendar.set(1997,6,1);
  resultDates[1]=calendar.getTime();
  calendar.set(1997,6,16);
  resultDates[2]=calendar.getTime();
  calendar.set(1997,6,16,19,20,0);
  resultDates[3]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  resultDates[4]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  calendar.set(Calendar.MILLISECOND,45);
  resultDates[5]=calendar.getTime();
  calendar.set(1997,6,16,19,20,0);
  calendar.set(Calendar.MILLISECOND,0);
  resultDates[6]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  resultDates[7]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  calendar.set(Calendar.MILLISECOND,45);
  resultDates[8]=calendar.getTime();
  resultDates[9]=resultDates[8];
  for (int i=0; i < testStrings.length; i++) {
    try {
      Date dateResult=DataTypeUtil.toDate(testStrings[i]);
      System.out.println("String_Node_Str" + i);
      System.out.println(dateResult);
      System.out.println(resultDates[i]);
      System.out.println();
      System.out.println(dateResult.getTime());
      System.out.println(resultDates[i].getTime());
      assertEquals(dateResult,resultDates[i]);
    }
 catch (    BirtException e) {
      fail("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void testToDate1(){
  String[] testStrings={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  Calendar calendar=Calendar.getInstance();
  Date[] resultDates=new Date[11];
  calendar.clear();
  calendar.set(1997,0,1);
  resultDates[0]=calendar.getTime();
  calendar.set(1997,6,1);
  resultDates[1]=calendar.getTime();
  calendar.set(1997,6,16);
  resultDates[2]=calendar.getTime();
  calendar.set(1997,6,16,19,20,0);
  resultDates[3]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  resultDates[4]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  calendar.set(Calendar.MILLISECOND,45);
  resultDates[5]=calendar.getTime();
  calendar.set(1997,6,16,19,20,0);
  calendar.set(Calendar.MILLISECOND,0);
  resultDates[6]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  resultDates[7]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  calendar.set(Calendar.MILLISECOND,45);
  resultDates[8]=calendar.getTime();
  resultDates[9]=calendar.getTime();
  calendar.set(1997,6,16,19,20,30);
  calendar.set(Calendar.MILLISECOND,45);
  resultDates[10]=calendar.getTime();
  for (int i=9; i < testStrings.length; i++) {
    try {
      Date dateResult=DataTypeUtil.toDate(testStrings[i]);
      System.out.println("String_Node_Str" + i);
      System.out.println(dateResult);
      System.out.println(resultDates[i]);
      System.out.println();
      System.out.println(dateResult.getTime());
      System.out.println(resultDates[i].getTime());
      assertEquals(dateResult,resultDates[i]);
    }
 catch (    BirtException e) {
      fail("String_Node_Str");
    }
  }
}