Program: 189147
Project: 189147
Buggy source:
private Form<Milestone> getInlineForm(){
  quickMilestone=createMilestone();
  CompoundPropertyModel<Milestone> formPropertyModel=new CompoundPropertyModel<Milestone>(quickMilestone);
  Form<Milestone> inlineForm=new Form<Milestone>("String_Node_Str",formPropertyModel){
    @Override protected void onSubmit(){
      MilestonesDAO dao=new MilestonesDAO();
      boolean alreadyExists=dao.find(quickMilestone.getName(),quickMilestone.getProject()) != null;
      if (alreadyExists) {
        warn("String_Node_Str");
        return;
      }
      quickMilestone.setUpdated(new Date());
      saveMilestone(quickMilestone);
      User currentUser=((HeadsUpSession)getSession()).getUser();
      quickMilestone=createMilestone();
    }
  }
;
  Component[] rowAddComponents=new Component[7];
  rowAddComponents[0]=new WebMarkupContainer("String_Node_Str");
  rowAddComponents[1]=new TextField<NameProjectId>("String_Node_Str");
  rowAddComponents[2]=new PercentagePanel("String_Node_Str",0);
  rowAddComponents[3]=new Label("String_Node_Str","String_Node_Str");
  rowAddComponents[4]=new Label("String_Node_Str","String_Node_Str");
  rowAddComponents[5]=new Label("String_Node_Str",page.getProject().toString());
  DateTimeWithTimeZoneField due=new DateTimeWithTimeZoneField("String_Node_Str",new Model<Date>(){
    @Override public void setObject(    Date object){
      quickMilestone.setDueDate(object);
    }
    @Override public Date getObject(){
      return quickMilestone.getDueDate();
    }
  }
);
  rowAddComponents[6]=due;
  addAnimatorToForm(rowAddComponents);
  inlineForm.add(rowAdd);
  return inlineForm;
}

Fixed version (ground truth):
private Form<Milestone> getInlineForm(){
  quickMilestone=createMilestone();
  CompoundPropertyModel<Milestone> formPropertyModel=new CompoundPropertyModel<Milestone>(quickMilestone);
  Form<Milestone> inlineForm=new Form<Milestone>("String_Node_Str",formPropertyModel){
    @Override protected void onSubmit(){
      MilestonesDAO dao=new MilestonesDAO();
      boolean alreadyExists=dao.find(quickMilestone.getName(),quickMilestone.getProject()) != null;
      if (alreadyExists) {
        warn("String_Node_Str");
        return;
      }
      quickMilestone.setUpdated(new Date());
      saveMilestone(quickMilestone);
      User currentUser=((HeadsUpSession)getSession()).getUser();
      quickMilestone=createMilestone();
    }
  }
;
  Component[] rowAddComponents=new Component[7];
  rowAddComponents[0]=new WebMarkupContainer("String_Node_Str");
  rowAddComponents[1]=new TextField<NameProjectId>("String_Node_Str");
  rowAddComponents[2]=new PercentagePanel("String_Node_Str",0);
  rowAddComponents[3]=new Label("String_Node_Str","String_Node_Str");
  rowAddComponents[4]=new Label("String_Node_Str","String_Node_Str");
  rowAddComponents[5]=new Label("String_Node_Str",page.getProject().toString());
  rowAddComponents[5].setVisible(!hideProject);
  DateTimeWithTimeZoneField due=new DateTimeWithTimeZoneField("String_Node_Str",new Model<Date>(){
    @Override public void setObject(    Date object){
      quickMilestone.setDueDate(object);
    }
    @Override public Date getObject(){
      return quickMilestone.getDueDate();
    }
  }
);
  rowAddComponents[6]=due;
  addAnimatorToForm(rowAddComponents);
  inlineForm.add(rowAdd);
  return inlineForm;
}