Program: 84512
Project: 84512
Buggy source:
/** 
 * This is called prior to displaying a form for the first time. It tells Spring the form/command object to load into the request
 * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)
 */
@Override protected List<PersonListItem> formBackingObject(HttpServletRequest request) throws ServletException {
  log.debug("String_Node_Str");
  List<PersonListItem> personList=new Vector<PersonListItem>();
  if (Context.isAuthenticated()) {
    PersonService ps=Context.getPersonService();
    Integer userId=Context.getAuthenticatedUser().getUserId();
    getParametersFromRequest(request);
    log.debug("String_Node_Str" + name + "String_Node_Str"+ birthdate+ "String_Node_Str"+ age+ "String_Node_Str"+ gender);
    if (!name.equals("String_Node_Str") || !birthdate.equals("String_Node_Str") || !age.equals("String_Node_Str")|| !gender.equals("String_Node_Str")) {
      log.info(userId + "String_Node_Str" + name+ "String_Node_Str"+ birthdate+ "String_Node_Str"+ age+ "String_Node_Str"+ gender);
      Integer d=null;
      birthdate=birthdate.trim();
      String birthyear="String_Node_Str";
      if (birthdate.length() > 6)       birthyear=birthdate.substring(6);
      age=age.trim();
      if (birthyear.length() > 3)       d=Integer.valueOf(birthyear);
 else       if (age.length() > 0) {
        Calendar c=Calendar.getInstance();
        c.setTime(new Date());
        d=c.get(Calendar.YEAR);
        d=d - Integer.parseInt(age);
      }
      if (gender.length() < 1)       gender=null;
      personList=new Vector<PersonListItem>();
      for (      Person p : ps.getSimilarPeople(name,d,gender)) {
        personList.add(PersonListItem.createBestMatch(p));
      }
    }
  }
  log.debug("String_Node_Str" + personList.size() + "String_Node_Str");
  return personList;
}

Fixed version (ground truth):
/** 
 * This is called prior to displaying a form for the first time. It tells Spring the form/command object to load into the request
 * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)
 */
@Override protected List<PersonListItem> formBackingObject(HttpServletRequest request) throws ServletException {
  log.debug("String_Node_Str");
  List<PersonListItem> personList=new Vector<PersonListItem>();
  if (Context.isAuthenticated()) {
    PersonService ps=Context.getPersonService();
    Integer userId=Context.getAuthenticatedUser().getUserId();
    invalidAgeFormat=false;
    getParametersFromRequest(request);
    log.debug("String_Node_Str" + name + "String_Node_Str"+ birthdate+ "String_Node_Str"+ age+ "String_Node_Str"+ gender);
    if (!name.equals("String_Node_Str") || !birthdate.equals("String_Node_Str") || !age.equals("String_Node_Str")|| !gender.equals("String_Node_Str")) {
      log.info(userId + "String_Node_Str" + name+ "String_Node_Str"+ birthdate+ "String_Node_Str"+ age+ "String_Node_Str"+ gender);
      Integer d=null;
      birthdate=birthdate.trim();
      String birthyear="String_Node_Str";
      if (birthdate.length() > 6)       birthyear=birthdate.substring(6);
      age=age.trim();
      if (birthyear.length() > 3)       d=Integer.valueOf(birthyear);
 else       if (age.length() > 0) {
        Calendar c=Calendar.getInstance();
        c.setTime(new Date());
        d=c.get(Calendar.YEAR);
        try {
          d=d - Integer.parseInt(age);
        }
 catch (        NumberFormatException e) {
          invalidAgeFormat=true;
        }
      }
      if (gender.length() < 1)       gender=null;
      personList=new Vector<PersonListItem>();
      for (      Person p : ps.getSimilarPeople(name,d,gender)) {
        personList.add(PersonListItem.createBestMatch(p));
      }
    }
  }
  log.debug("String_Node_Str" + personList.size() + "String_Node_Str");
  return personList;
}