Program: 146756
Project: 146756
Buggy source:
protected DataBinding processStandardBindAttributes(Vector usedAtts,Element e){
  usedAtts.addElement(ID_ATTR);
  usedAtts.addElement(NODESET_ATTR);
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  DataBinding binding=new DataBinding();
  binding.setId(e.getAttributeValue("String_Node_Str",ID_ATTR));
  String nodeset=e.getAttributeValue(null,NODESET_ATTR);
  if (nodeset == null) {
    throw new XFormParseException("String_Node_Str",e);
  }
  IDataReference ref;
  try {
    ref=new XPathReference(nodeset);
  }
 catch (  XPathException xpe) {
    throw new XFormParseException(xpe.getMessage());
  }
  ref=getAbsRef(ref,_f);
  binding.setReference(ref);
  binding.setDataType(getDataType(e.getAttributeValue(null,"String_Node_Str")));
  String xpathRel=e.getAttributeValue(null,"String_Node_Str");
  if (xpathRel != null) {
    if ("String_Node_Str".equals(xpathRel)) {
      binding.relevantAbsolute=true;
    }
 else     if ("String_Node_Str".equals(xpathRel)) {
      binding.relevantAbsolute=false;
    }
 else {
      Condition c=buildCondition(xpathRel,"String_Node_Str",ref);
      c=(Condition)_f.addTriggerable(c);
      binding.relevancyCondition=c;
    }
  }
  String xpathReq=e.getAttributeValue(null,"String_Node_Str");
  if (xpathReq != null) {
    if ("String_Node_Str".equals(xpathReq)) {
      binding.requiredAbsolute=true;
    }
 else     if ("String_Node_Str".equals(xpathReq)) {
      binding.requiredAbsolute=false;
    }
 else {
      Condition c=buildCondition(xpathReq,"String_Node_Str",ref);
      c=(Condition)_f.addTriggerable(c);
      binding.requiredCondition=c;
    }
  }
  String xpathRO=e.getAttributeValue(null,"String_Node_Str");
  if (xpathRO != null) {
    if ("String_Node_Str".equals(xpathRO)) {
      binding.readonlyAbsolute=true;
    }
 else     if ("String_Node_Str".equals(xpathRO)) {
      binding.readonlyAbsolute=false;
    }
 else {
      Condition c=buildCondition(xpathRO,"String_Node_Str",ref);
      c=(Condition)_f.addTriggerable(c);
      binding.readonlyCondition=c;
    }
  }
  String xpathConstr=e.getAttributeValue(null,"String_Node_Str");
  if (xpathConstr != null) {
    try {
      binding.constraint=new XPathConditional(xpathConstr);
    }
 catch (    XPathSyntaxException xse) {
      reporter.error("String_Node_Str" + nodeset + "String_Node_Str"+ xpathConstr+ "String_Node_Str"+ xse.getMessage());
    }
    binding.constraintMessage=e.getAttributeValue(NAMESPACE_JAVAROSA,"String_Node_Str");
  }
  String xpathCalc=e.getAttributeValue(null,"String_Node_Str");
  if (xpathCalc != null) {
    Recalculate r;
    try {
      r=buildCalculate(xpathCalc,ref);
    }
 catch (    XPathSyntaxException xpse) {
      throw new XFormParseException("String_Node_Str" + nodeset + "String_Node_Str"+ xpse.getMessage()+ "String_Node_Str"+ xpathCalc);
    }
    r=(Recalculate)_f.addTriggerable(r);
    binding.calculate=r;
  }
  binding.setPreload(e.getAttributeValue(NAMESPACE_JAVAROSA,"String_Node_Str"));
  binding.setPreloadParams(e.getAttributeValue(NAMESPACE_JAVAROSA,"String_Node_Str"));
  return binding;
}

Fixed version (ground truth):
protected DataBinding processStandardBindAttributes(Vector usedAtts,Element e){
  usedAtts.addElement(ID_ATTR);
  usedAtts.addElement(NODESET_ATTR);
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  usedAtts.addElement("String_Node_Str");
  DataBinding binding=new DataBinding();
  binding.setId(e.getAttributeValue("String_Node_Str",ID_ATTR));
  String nodeset=e.getAttributeValue(null,NODESET_ATTR);
  if (nodeset == null) {
    throw new XFormParseException("String_Node_Str",e);
  }
  IDataReference ref;
  try {
    ref=new XPathReference(nodeset);
  }
 catch (  XPathException xpe) {
    throw new XFormParseException(xpe.getMessage());
  }
  ref=getAbsRef(ref,_f);
  binding.setReference(ref);
  binding.setDataType(getDataType(e.getAttributeValue(null,"String_Node_Str")));
  String xpathRel=e.getAttributeValue(null,"String_Node_Str");
  if (xpathRel != null) {
    if ("String_Node_Str".equals(xpathRel)) {
      binding.relevantAbsolute=true;
    }
 else     if ("String_Node_Str".equals(xpathRel)) {
      binding.relevantAbsolute=false;
    }
 else {
      Condition c=buildCondition(xpathRel,"String_Node_Str",ref);
      c=(Condition)_f.addTriggerable(c);
      binding.relevancyCondition=c;
    }
  }
  String xpathReq=e.getAttributeValue(null,"String_Node_Str");
  if (xpathReq != null) {
    if ("String_Node_Str".equals(xpathReq)) {
      binding.requiredAbsolute=true;
    }
 else     if ("String_Node_Str".equals(xpathReq)) {
      binding.requiredAbsolute=false;
    }
 else {
      Condition c=buildCondition(xpathReq,"String_Node_Str",ref);
      c=(Condition)_f.addTriggerable(c);
      binding.requiredCondition=c;
    }
  }
  String xpathRO=e.getAttributeValue(null,"String_Node_Str");
  if (xpathRO != null) {
    if ("String_Node_Str".equals(xpathRO)) {
      binding.readonlyAbsolute=true;
    }
 else     if ("String_Node_Str".equals(xpathRO)) {
      binding.readonlyAbsolute=false;
    }
 else {
      Condition c=buildCondition(xpathRO,"String_Node_Str",ref);
      c=(Condition)_f.addTriggerable(c);
      binding.readonlyCondition=c;
    }
  }
  String xpathConstr=e.getAttributeValue(null,"String_Node_Str");
  if (xpathConstr != null) {
    try {
      binding.constraint=new XPathConditional(xpathConstr);
    }
 catch (    XPathSyntaxException xse) {
      throw new XFormParseException("String_Node_Str" + nodeset + "String_Node_Str"+ xpathConstr+ "String_Node_Str"+ xse.getMessage());
    }
    binding.constraintMessage=e.getAttributeValue(NAMESPACE_JAVAROSA,"String_Node_Str");
  }
  String xpathCalc=e.getAttributeValue(null,"String_Node_Str");
  if (xpathCalc != null) {
    Recalculate r;
    try {
      r=buildCalculate(xpathCalc,ref);
    }
 catch (    XPathSyntaxException xpse) {
      throw new XFormParseException("String_Node_Str" + nodeset + "String_Node_Str"+ xpse.getMessage()+ "String_Node_Str"+ xpathCalc);
    }
    r=(Recalculate)_f.addTriggerable(r);
    binding.calculate=r;
  }
  binding.setPreload(e.getAttributeValue(NAMESPACE_JAVAROSA,"String_Node_Str"));
  binding.setPreloadParams(e.getAttributeValue(NAMESPACE_JAVAROSA,"String_Node_Str"));
  return binding;
}