nus-yam/ex-repair huggingface dataset:
Program: 66367
Project: 66367
Buggy source:
/** 
 * Tests XmlChoiceMapping configuration via eclipselink-oxm.xml.  Here an unmarshal operation is performed. Utilizes xml-attribute and  xml-element. Positive test.
 */
public void testChoiceMappingUnmarshal(){
  InputStream iDocStream=loader.getResourceAsStream(PATH + "String_Node_Str");
  if (iDocStream == null) {
    fail("String_Node_Str" + PATH + "String_Node_Str"+ "String_Node_Str");
  }
  Employee ctrlEmp=getControlObject();
  try {
    Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
    Employee empObj=(Employee)unmarshaller.unmarshal(iDocStream);
    assertNotNull("String_Node_Str",empObj);
    assertTrue("String_Node_Str",empObj.wasSetCalled);
    assertTrue("String_Node_Str",ctrlEmp.equals(empObj));
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Tests XmlChoiceMapping configuration via eclipselink-oxm.xml.  Here an unmarshal operation is performed. Utilizes xml-attribute and  xml-element. Positive test.
 */
public void testChoiceMappingUnmarshal(){
  InputStream iDocStream=loader.getResourceAsStream(PATH + "String_Node_Str");
  if (iDocStream == null) {
    fail("String_Node_Str" + PATH + "String_Node_Str"+ "String_Node_Str");
  }
  Employee ctrlEmp=getControlObject();
  ctrlEmp.writeOnlyThing=null;
  try {
    Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
    Employee empObj=(Employee)unmarshaller.unmarshal(iDocStream);
    assertNotNull("String_Node_Str",empObj);
    assertTrue("String_Node_Str",empObj.wasSetCalled);
    assertTrue("String_Node_Str",ctrlEmp.equals(empObj));
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}
Program: 66368
Project: 66368
Buggy source:
public boolean marshal(XPathFragment xPathFragment,MarshalRecord marshalRecord,Object object,AbstractSession session,NamespaceResolver namespaceResolver){
  Object value=xmlChoiceCollectionMapping.getAttributeValueFromObject(object);
  if (value == null) {
    return false;
  }
  ContainerPolicy cp=getContainerPolicy();
  Object iterator=cp.iteratorFor(value);
  if (cp.hasNext(iterator)) {
    XPathFragment groupingFragment=marshalRecord.openStartGroupingElements(namespaceResolver);
    marshalRecord.closeStartGroupingElements(groupingFragment);
  }
 else {
    return false;
  }
  while (cp.hasNext(iterator)) {
    Object nextValue=cp.next(iterator,session);
    marshalSingleValue(xPathFragment,marshalRecord,object,nextValue,session,namespaceResolver,ObjectMarshalContext.getInstance());
  }
  return true;
}

Fixed version (ground truth):
public boolean marshal(XPathFragment xPathFragment,MarshalRecord marshalRecord,Object object,AbstractSession session,NamespaceResolver namespaceResolver){
  if (xmlChoiceCollectionMapping.isReadOnly()) {
    return false;
  }
  Object value=xmlChoiceCollectionMapping.getAttributeValueFromObject(object);
  if (value == null) {
    return false;
  }
  ContainerPolicy cp=getContainerPolicy();
  Object iterator=cp.iteratorFor(value);
  if (cp.hasNext(iterator)) {
    XPathFragment groupingFragment=marshalRecord.openStartGroupingElements(namespaceResolver);
    marshalRecord.closeStartGroupingElements(groupingFragment);
  }
 else {
    return false;
  }
  while (cp.hasNext(iterator)) {
    Object nextValue=cp.next(iterator,session);
    marshalSingleValue(xPathFragment,marshalRecord,object,nextValue,session,namespaceResolver,ObjectMarshalContext.getInstance());
  }
  return true;
}
Program: 66370
Project: 66370
Buggy source:
/** 
 * Tests XmlChoiceCollectionMapping configuration via eclipselink-oxm.xml. Here a marshal operation is performed. Utilizes xml-attribute and xml-element Positive test.
 */
public void testChoiceCollectionMappingMarshal(){
  String src=PATH + "String_Node_Str";
  Document testDoc=parser.newDocument();
  Document ctrlDoc=parser.newDocument();
  try {
    ctrlDoc=getControlDocument(src);
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + src + "String_Node_Str");
  }
  try {
    Marshaller marshaller=jaxbContext.createMarshaller();
    Employee ctrlEmp=getControlObject();
    ctrlEmp.readOnlyThings=null;
    marshaller.marshal(ctrlEmp,testDoc);
    assertTrue("String_Node_Str",ctrlEmp.wasGetCalled);
    assertTrue("String_Node_Str",compareDocuments(ctrlDoc,testDoc));
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Tests XmlChoiceCollectionMapping configuration via eclipselink-oxm.xml. Here a marshal operation is performed. Utilizes xml-attribute and xml-element Positive test.
 */
public void testChoiceCollectionMappingMarshal(){
  String src=PATH + "String_Node_Str";
  Document testDoc=parser.newDocument();
  Document ctrlDoc=parser.newDocument();
  try {
    ctrlDoc=getControlDocument(src);
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + src + "String_Node_Str");
  }
  try {
    Marshaller marshaller=jaxbContext.createMarshaller();
    Employee ctrlEmp=getControlObject();
    marshaller.marshal(ctrlEmp,testDoc);
    assertTrue("String_Node_Str",ctrlEmp.wasGetCalled);
    assertTrue("String_Node_Str",compareDocuments(ctrlDoc,testDoc));
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}
Program: 66371
Project: 66371
Buggy source:
public boolean marshalSingleValue(XPathFragment xPathFragment,MarshalRecord marshalRecord,Object object,Object value,AbstractSession session,NamespaceResolver namespaceResolver,MarshalContext marshalContext){
  if (value instanceof XMLRoot) {
    XMLRoot root=(XMLRoot)value;
    XPathFragment fragment=this.xmlField.getXPathFragment();
    while (fragment != null && !fragment.nameIsText) {
      if (fragment.getNextFragment() == null || fragment.getHasText()) {
        if (fragment.getLocalName().equals(root.getLocalName())) {
          String fragUri=fragment.getNamespaceURI();
          String namespaceUri=root.getNamespaceURI();
          if ((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return this.choiceElementNodeValue.marshalSingleValue(xPathFragment,marshalRecord,object,value,session,namespaceResolver,marshalContext);
          }
        }
      }
      fragment=fragment.getNextFragment();
    }
    if (root.getObject() != null && xmlChoiceMapping.getClassToFieldMappings().get(root.getObject().getClass()) == this.xmlField) {
      return this.choiceElementNodeValue.marshal(xPathFragment,marshalRecord,object,session,namespaceResolver);
    }
  }
 else {
    if (value != null && xmlChoiceMapping.getClassToFieldMappings().get(value.getClass()) == this.xmlField) {
      return this.choiceElementNodeValue.marshalSingleValue(xPathFragment,marshalRecord,object,value,session,namespaceResolver,marshalContext);
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean marshalSingleValue(XPathFragment xPathFragment,MarshalRecord marshalRecord,Object object,Object value,AbstractSession session,NamespaceResolver namespaceResolver,MarshalContext marshalContext){
  if (value instanceof XMLRoot) {
    XMLRoot root=(XMLRoot)value;
    XPathFragment fragment=this.xmlField.getXPathFragment();
    while (fragment != null && !fragment.nameIsText) {
      if (fragment.getNextFragment() == null || fragment.getHasText()) {
        if (fragment.getLocalName().equals(root.getLocalName())) {
          String fragUri=fragment.getNamespaceURI();
          String namespaceUri=root.getNamespaceURI();
          if ((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return this.choiceElementNodeValue.marshalSingleValue(xPathFragment,marshalRecord,object,value,session,namespaceResolver,marshalContext);
          }
        }
      }
      fragment=fragment.getNextFragment();
    }
  }
 else {
    if (value != null && xmlChoiceMapping.getClassToFieldMappings().get(value.getClass()) == this.xmlField) {
      return this.choiceElementNodeValue.marshalSingleValue(xPathFragment,marshalRecord,object,value,session,namespaceResolver,marshalContext);
    }
  }
  return false;
}
Program: 66372
Project: 66372
Buggy source:
public DatabaseMapping runtimeMapping(){
  DirectMapMapping runtimeMapping=(DirectMapMapping)super.runtimeMapping();
  runtimeMapping.setContainerPolicy(this.containerPolicy.runtimeContainerPolicy());
  runtimeMapping.setKeyConverter(getDirectKeyConverter().runtimeConverter(runtimeMapping));
  if (getDirectKeyColumn() != null) {
    runtimeMapping.setDirectKeyFieldName(getDirectKeyColumn().qualifiedName());
  }
  return runtimeMapping;
}

Fixed version (ground truth):
public DatabaseMapping runtimeMapping(){
  DirectMapMapping runtimeMapping=(DirectMapMapping)super.runtimeMapping();
  runtimeMapping.setContainerPolicy(this.containerPolicy.runtimeContainerPolicy());
  if (getDirectKeyColumn() != null) {
    runtimeMapping.setDirectKeyFieldName(getDirectKeyColumn().qualifiedName());
  }
  if (!MWConverter.NO_CONVERTER.equals(getDirectKeyConverter().getType())) {
    runtimeMapping.setKeyConverter(getDirectKeyConverter().runtimeConverter(runtimeMapping));
  }
  return runtimeMapping;
}
Program: 66373
Project: 66373
Buggy source:
public void testDefine(){
  StreamSource source=new StreamSource("String_Node_Str");
  List types=((SDOXSDHelper)xsdHelper).define(source,new MySchemaResolver());
  log("String_Node_Str");
  log("String_Node_Str");
  log(types);
}

Fixed version (ground truth):
public void testDefine(){
  StreamSource source=new StreamSource("String_Node_Str");
  List types=((SDOXSDHelper)xsdHelper).define(source,new MySchemaResolver());
  assertEquals(1,types.size());
}
Program: 66374
Project: 66374
Buggy source:
@Test @Bugzilla(bugid=309681) public void testRefreshDeleted() throws SQLException {
  final JPAEnvironment env=getEnvironment();
  final EntityManager em=env.getEntityManager();
  int id;
  Department dep;
  Department updatedDep;
  try {
    id=31;
    dep=new Department(id,"String_Node_Str");
    env.beginTransaction(em);
    em.persist(dep);
    env.commitTransactionAndClear(em);
    env.beginTransaction(em);
    dep=em.find(Department.class,new Integer(id));
    em.remove(dep);
    dep.setName("String_Node_Str");
    em.refresh(dep);
    checkDepartment(dep,id,"String_Node_Str");
    verify(!em.contains(dep),"String_Node_Str");
    env.commitTransactionAndClear(em);
    verifyAbsenceFromDatabase(em,id);
    id=32;
    dep=new Department(id,"String_Node_Str");
    updatedDep=new Department(id,"String_Node_Str");
    env.beginTransaction(em);
    em.persist(dep);
    env.commitTransactionAndClear(em);
    env.beginTransaction(em);
    dep=em.find(Department.class,new Integer(id));
    em.remove(dep);
    updateDepartmentOnDatabase(updatedDep);
    em.refresh(dep);
    checkDepartment(dep,id,"String_Node_Str");
    verify(!em.contains(dep),"String_Node_Str");
    env.commitTransactionAndClear(em);
    verifyAbsenceFromDatabase(em,id);
    id=33;
    dep=new Department(id,"String_Node_Str");
    env.beginTransaction(em);
    em.persist(dep);
    env.commitTransactionAndClear(em);
    env.beginTransaction(em);
    dep=em.find(Department.class,new Integer(id));
    em.remove(dep);
    deleteDepartmentFromDatabase(id);
    verifyAbsenceFromDatabase(em,id);
    try {
      em.refresh(dep);
      flop("String_Node_Str");
    }
 catch (    EntityNotFoundException e) {
      verify(true,"String_Node_Str");
    }
    verifyAbsenceFromDatabase(em,id);
    env.rollbackTransactionAndClear(em);
    id=34;
    dep=new Department(id,"String_Node_Str");
    env.beginTransaction(em);
    em.persist(dep);
    env.commitTransactionAndClear(em);
    env.beginTransaction(em);
    dep=em.find(Department.class,new Integer(id));
    em.remove(dep);
    em.flush();
    verifyAbsenceFromDatabase(em,id);
    try {
      em.refresh(dep);
      flop("String_Node_Str");
    }
 catch (    EntityNotFoundException e) {
      verify(true,"String_Node_Str");
    }
    env.rollbackTransactionAndClear(em);
    verifyExistenceOnDatabase(id);
  }
  finally {
    closeEntityManager(em);
  }
}

Fixed version (ground truth):
@Test public void testRefreshDeleted() throws SQLException {
  doRefreshDeleted(31,false);
  doRefreshDeleted(32,true);
}
Program: 66376
Project: 66376
Buggy source:
public void persistExample(Session session){
  Vector allObjects=new Vector();
  UnitOfWork unitOfWork=session.acquireUnitOfWork();
  PopulationManager.getDefaultManager().addAllObjectsForClass(Person.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(AAA.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(Company.class,allObjects);
  unitOfWork.registerAllObjects(allObjects);
  unitOfWork.commit();
}

Fixed version (ground truth):
public void persistExample(Session session){
  Vector allObjects=new Vector();
  UnitOfWork unitOfWork=session.acquireUnitOfWork();
  PopulationManager.getDefaultManager().addAllObjectsForClass(Person.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(AAA.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(Company.class,allObjects);
  PopulationManager.getDefaultManager().addAllObjectsForClass(Computer.class,allObjects);
  unitOfWork.registerAllObjects(allObjects);
  unitOfWork.commit();
}
Program: 66378
Project: 66378
Buggy source:
public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.setName("String_Node_Str");
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  return suite;
}

Fixed version (ground truth):
public static Test suite(){
  TestSuite suite=new TestSuite();
  suite.setName("String_Node_Str");
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  suite.addTest(new JUnitJPQLInheritanceTestSuite("String_Node_Str"));
  return suite;
}
Program: 66379
Project: 66379
Buggy source:
public SAXUnmarshaller(XMLUnmarshaller xmlUnmarshaller,Map<String,Boolean> parserFeatures) throws XMLMarshalException {
  super();
  try {
    saxParserFactory=SAXParserFactory.newInstance();
    saxParserFactory.setNamespaceAware(true);
    saxParserFactory.setFeature("String_Node_Str",true);
    if (null != parserFeatures) {
      for (      Map.Entry<String,Boolean> parserFeature : parserFeatures.entrySet()) {
        try {
          saxParserFactory.setFeature(parserFeature.getKey(),parserFeature.getValue());
        }
 catch (        org.xml.sax.SAXNotRecognizedException ex) {
        }
catch (        org.xml.sax.SAXNotSupportedException ex) {
        }
      }
    }
    saxParser=saxParserFactory.newSAXParser();
    xmlReader=new XMLReader(saxParser.getXMLReader());
    xmlReader.setErrorHandler(new DefaultErrorHandler());
    xmlParser=XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
    xmlParser.setNamespaceAware(true);
    xmlParser.setValidationMode(XMLParser.NONVALIDATING);
    this.xmlUnmarshaller=xmlUnmarshaller;
  }
 catch (  Exception e) {
    throw XMLMarshalException.errorInstantiatingSchemaPlatform(e);
  }
}

Fixed version (ground truth):
public SAXUnmarshaller(XMLUnmarshaller xmlUnmarshaller,Map<String,Boolean> parserFeatures) throws XMLMarshalException {
  super();
  try {
    saxParserFactory=SAXParserFactory.newInstance();
    saxParserFactory.setNamespaceAware(true);
    saxParserFactory.setFeature("String_Node_Str",true);
    try {
      saxParserFactory.setFeature("String_Node_Str",true);
    }
 catch (    org.xml.sax.SAXNotRecognizedException ex) {
    }
catch (    org.xml.sax.SAXNotSupportedException ex) {
    }
    if (null != parserFeatures) {
      for (      Map.Entry<String,Boolean> parserFeature : parserFeatures.entrySet()) {
        try {
          saxParserFactory.setFeature(parserFeature.getKey(),parserFeature.getValue());
        }
 catch (        org.xml.sax.SAXNotRecognizedException ex) {
        }
catch (        org.xml.sax.SAXNotSupportedException ex) {
        }
      }
    }
    saxParser=saxParserFactory.newSAXParser();
    xmlReader=new XMLReader(saxParser.getXMLReader());
    xmlReader.setErrorHandler(new DefaultErrorHandler());
    xmlParser=XMLPlatformFactory.getInstance().getXMLPlatform().newXMLParser();
    xmlParser.setNamespaceAware(true);
    xmlParser.setValidationMode(XMLParser.NONVALIDATING);
    this.xmlUnmarshaller=xmlUnmarshaller;
  }
 catch (  Exception e) {
    throw XMLMarshalException.errorInstantiatingSchemaPlatform(e);
  }
}
Program: 66384
Project: 66384
Buggy source:
private String appendTimeZone(String string){
  if (!timeZoneQualified) {
    return string;
  }
  StringBuilder stringBuilder=new StringBuilder(string);
  int rawMinuteOffset=getTimeZone().getRawOffset() / 60000;
  if (0 == rawMinuteOffset) {
    stringBuilder.append(GMT_SUFFIX);
    return stringBuilder.toString();
  }
  if (rawMinuteOffset < 0) {
    stringBuilder.append('-');
    rawMinuteOffset=Math.abs(rawMinuteOffset);
  }
 else {
    stringBuilder.append('+');
  }
  int hourOffset=rawMinuteOffset / 60;
  if (hourOffset < 10) {
    stringBuilder.append('0');
  }
  stringBuilder.append(hourOffset);
  stringBuilder.append(XMLConstants.COLON);
  int minuteOffset=rawMinuteOffset % 60;
  if (minuteOffset < 10) {
    stringBuilder.append('0');
  }
  stringBuilder.append(minuteOffset);
  return stringBuilder.toString();
}

Fixed version (ground truth):
private String appendTimeZone(String string,Date date){
  if (!timeZoneQualified) {
    return string;
  }
  StringBuilder stringBuilder=new StringBuilder(string);
  int rawMinuteOffset=getTimeZone().getOffset(date.getTime()) / 60000;
  if (0 == rawMinuteOffset) {
    stringBuilder.append(GMT_SUFFIX);
    return stringBuilder.toString();
  }
  if (rawMinuteOffset < 0) {
    stringBuilder.append('-');
    rawMinuteOffset=Math.abs(rawMinuteOffset);
  }
 else {
    stringBuilder.append('+');
  }
  int hourOffset=rawMinuteOffset / 60;
  if (hourOffset < 10) {
    stringBuilder.append('0');
  }
  stringBuilder.append(hourOffset);
  stringBuilder.append(XMLConstants.COLON);
  int minuteOffset=rawMinuteOffset % 60;
  if (minuteOffset < 10) {
    stringBuilder.append('0');
  }
  stringBuilder.append(minuteOffset);
  return stringBuilder.toString();
}
Program: 66386
Project: 66386
Buggy source:
protected ClassDescriptor buildObjectRelationalDataTypeDescriptorDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(ObjectRelationalDataTypeDescriptor.class);
  descriptor.getInheritancePolicy().setParentClass(RelationalDescriptor.class);
  XMLDirectMapping structureMapping=new XMLDirectMapping();
  structureMapping.setAttributeName("String_Node_Str");
  structureMapping.setGetMethodName("String_Node_Str");
  structureMapping.setSetMethodName("String_Node_Str");
  structureMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(structureMapping);
  XMLCompositeCollectionMapping orderedFieldsMapping=new XMLCompositeCollectionMapping();
  orderedFieldsMapping.useCollectionClass(NonSynchronizedVector.class);
  orderedFieldsMapping.setAttributeName("String_Node_Str");
  orderedFieldsMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  orderedFieldsMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(orderedFieldsMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildObjectRelationalDataTypeDescriptorDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(ObjectRelationalDataTypeDescriptor.class);
  descriptor.getInheritancePolicy().setParentClass(RelationalDescriptor.class);
  XMLDirectMapping structureMapping=new XMLDirectMapping();
  structureMapping.setAttributeName("String_Node_Str");
  structureMapping.setGetMethodName("String_Node_Str");
  structureMapping.setSetMethodName("String_Node_Str");
  structureMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(structureMapping);
  XMLCompositeCollectionMapping orderedFieldsMapping=new XMLCompositeCollectionMapping();
  orderedFieldsMapping.useCollectionClass(NonSynchronizedVector.class);
  orderedFieldsMapping.setAttributeName("String_Node_Str");
  orderedFieldsMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  orderedFieldsMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)orderedFieldsMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(orderedFieldsMapping);
  return descriptor;
}
Program: 66389
Project: 66389
Buggy source:
protected ClassDescriptor buildAbstractCompositeCollectionMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(AbstractCompositeCollectionMapping.class);
  descriptor.getInheritancePolicy().setParentClass(AggregateMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(fieldMapping);
  XMLCompositeObjectMapping containerPolicyMapping=new XMLCompositeObjectMapping();
  containerPolicyMapping.setAttributeName("String_Node_Str");
  containerPolicyMapping.setGetMethodName("String_Node_Str");
  containerPolicyMapping.setSetMethodName("String_Node_Str");
  containerPolicyMapping.setReferenceClass(ContainerPolicy.class);
  containerPolicyMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(containerPolicyMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildAbstractCompositeCollectionMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(AbstractCompositeCollectionMapping.class);
  descriptor.getInheritancePolicy().setParentClass(AggregateMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  ((XMLField)fieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldMapping);
  XMLCompositeObjectMapping containerPolicyMapping=new XMLCompositeObjectMapping();
  containerPolicyMapping.setAttributeName("String_Node_Str");
  containerPolicyMapping.setGetMethodName("String_Node_Str");
  containerPolicyMapping.setSetMethodName("String_Node_Str");
  containerPolicyMapping.setReferenceClass(ContainerPolicy.class);
  containerPolicyMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(containerPolicyMapping);
  return descriptor;
}
Program: 66392
Project: 66392
Buggy source:
protected ClassDescriptor buildVersionLockingPolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(VersionLockingPolicy.class);
  descriptor.getInheritancePolicy().setParentClass(OptimisticLockingPolicy.class);
  XMLCompositeObjectMapping versionFieldMapping=new XMLCompositeObjectMapping();
  versionFieldMapping.setAttributeName("String_Node_Str");
  versionFieldMapping.setGetMethodName("String_Node_Str");
  versionFieldMapping.setSetMethodName("String_Node_Str");
  versionFieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  versionFieldMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(versionFieldMapping);
  XMLDirectMapping shouldStoreInCacheMapping=new XMLDirectMapping();
  shouldStoreInCacheMapping.setAttributeName("String_Node_Str");
  shouldStoreInCacheMapping.setGetMethodName("String_Node_Str");
  shouldStoreInCacheMapping.setSetMethodName("String_Node_Str");
  shouldStoreInCacheMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  shouldStoreInCacheMapping.setNullValue(Boolean.TRUE);
  descriptor.addMapping(shouldStoreInCacheMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildVersionLockingPolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(VersionLockingPolicy.class);
  descriptor.getInheritancePolicy().setParentClass(OptimisticLockingPolicy.class);
  XMLCompositeObjectMapping versionFieldMapping=new XMLCompositeObjectMapping();
  versionFieldMapping.setAttributeName("String_Node_Str");
  versionFieldMapping.setGetMethodName("String_Node_Str");
  versionFieldMapping.setSetMethodName("String_Node_Str");
  versionFieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  versionFieldMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)versionFieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(versionFieldMapping);
  XMLDirectMapping shouldStoreInCacheMapping=new XMLDirectMapping();
  shouldStoreInCacheMapping.setAttributeName("String_Node_Str");
  shouldStoreInCacheMapping.setGetMethodName("String_Node_Str");
  shouldStoreInCacheMapping.setSetMethodName("String_Node_Str");
  shouldStoreInCacheMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  shouldStoreInCacheMapping.setNullValue(Boolean.TRUE);
  descriptor.addMapping(shouldStoreInCacheMapping);
  return descriptor;
}
Program: 66393
Project: 66393
Buggy source:
protected ClassDescriptor buildDirectMapMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(DirectMapMapping.class);
  descriptor.getInheritancePolicy().setParentClass(DirectCollectionMapping.class);
  XMLCompositeObjectMapping directKeyFieldMapping=new XMLCompositeObjectMapping();
  directKeyFieldMapping.setAttributeName("String_Node_Str");
  directKeyFieldMapping.setGetMethodName("String_Node_Str");
  directKeyFieldMapping.setSetMethodName("String_Node_Str");
  directKeyFieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  directKeyFieldMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(directKeyFieldMapping);
  XMLCompositeObjectMapping keyConverterMapping=new XMLCompositeObjectMapping();
  keyConverterMapping.setAttributeName("String_Node_Str");
  keyConverterMapping.setGetMethodName("String_Node_Str");
  keyConverterMapping.setSetMethodName("String_Node_Str");
  keyConverterMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  keyConverterMapping.setReferenceClass(Converter.class);
  descriptor.addMapping(keyConverterMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildDirectMapMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(DirectMapMapping.class);
  descriptor.getInheritancePolicy().setParentClass(DirectCollectionMapping.class);
  XMLCompositeObjectMapping directKeyFieldMapping=new XMLCompositeObjectMapping();
  directKeyFieldMapping.setAttributeName("String_Node_Str");
  directKeyFieldMapping.setGetMethodName("String_Node_Str");
  directKeyFieldMapping.setSetMethodName("String_Node_Str");
  directKeyFieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  directKeyFieldMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)directKeyFieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(directKeyFieldMapping);
  XMLCompositeObjectMapping keyConverterMapping=new XMLCompositeObjectMapping();
  keyConverterMapping.setAttributeName("String_Node_Str");
  keyConverterMapping.setGetMethodName("String_Node_Str");
  keyConverterMapping.setSetMethodName("String_Node_Str");
  keyConverterMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  keyConverterMapping.setReferenceClass(Converter.class);
  descriptor.addMapping(keyConverterMapping);
  return descriptor;
}
Program: 66395
Project: 66395
Buggy source:
protected ClassDescriptor buildAbstractDirectMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(AbstractDirectMapping.class);
  descriptor.getInheritancePolicy().setParentClass(DatabaseMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(fieldMapping);
  XMLDirectMapping nullValueMapping=new XMLDirectMapping();
  nullValueMapping.setAttributeName("String_Node_Str");
  nullValueMapping.setGetMethodName("String_Node_Str");
  nullValueMapping.setSetMethodName("String_Node_Str");
  nullValueMapping.setField(buildTypedField(getSecondaryNamespaceXPath() + "String_Node_Str"));
  descriptor.addMapping(nullValueMapping);
  XMLCompositeObjectMapping converterMapping=new XMLCompositeObjectMapping();
  converterMapping.setAttributeName("String_Node_Str");
  converterMapping.setGetMethodName("String_Node_Str");
  converterMapping.setSetMethodName("String_Node_Str");
  converterMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  converterMapping.setReferenceClass(Converter.class);
  descriptor.addMapping(converterMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildAbstractDirectMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(AbstractDirectMapping.class);
  descriptor.getInheritancePolicy().setParentClass(DatabaseMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  ((XMLField)fieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldMapping);
  XMLDirectMapping nullValueMapping=new XMLDirectMapping();
  nullValueMapping.setAttributeName("String_Node_Str");
  nullValueMapping.setGetMethodName("String_Node_Str");
  nullValueMapping.setSetMethodName("String_Node_Str");
  nullValueMapping.setField(buildTypedField(getSecondaryNamespaceXPath() + "String_Node_Str"));
  descriptor.addMapping(nullValueMapping);
  XMLCompositeObjectMapping converterMapping=new XMLCompositeObjectMapping();
  converterMapping.setAttributeName("String_Node_Str");
  converterMapping.setGetMethodName("String_Node_Str");
  converterMapping.setSetMethodName("String_Node_Str");
  converterMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  converterMapping.setReferenceClass(Converter.class);
  descriptor.addMapping(converterMapping);
  return descriptor;
}
Program: 66396
Project: 66396
Buggy source:
protected ClassDescriptor buildNestedTableMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(NestedTableMapping.class);
  descriptor.getInheritancePolicy().setParentClass(CollectionMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  descriptor.addMapping(fieldMapping);
  XMLDirectMapping structureMapping=new XMLDirectMapping();
  structureMapping.setAttributeName("String_Node_Str");
  structureMapping.setGetMethodName("String_Node_Str");
  structureMapping.setSetMethodName("String_Node_Str");
  structureMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(structureMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildNestedTableMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(NestedTableMapping.class);
  descriptor.getInheritancePolicy().setParentClass(CollectionMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  ((XMLField)fieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldMapping);
  XMLDirectMapping structureMapping=new XMLDirectMapping();
  structureMapping.setAttributeName("String_Node_Str");
  structureMapping.setGetMethodName("String_Node_Str");
  structureMapping.setSetMethodName("String_Node_Str");
  structureMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(structureMapping);
  return descriptor;
}
Program: 66397
Project: 66397
Buggy source:
protected ClassDescriptor buildFieldTransformationDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(FieldTransformation.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  descriptor.getInheritancePolicy().setClassIndicatorField(new XMLField("String_Node_Str"));
  descriptor.getInheritancePolicy().setShouldReadSubclasses(true);
  descriptor.getInheritancePolicy().addClassIndicator(FieldTransformation.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(MethodBasedFieldTransformation.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(TransformerBasedFieldTransformation.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  descriptor.addMapping(fieldMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildFieldTransformationDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(FieldTransformation.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  descriptor.getInheritancePolicy().setClassIndicatorField(new XMLField("String_Node_Str"));
  descriptor.getInheritancePolicy().setShouldReadSubclasses(true);
  descriptor.getInheritancePolicy().addClassIndicator(FieldTransformation.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(MethodBasedFieldTransformation.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(TransformerBasedFieldTransformation.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  ((XMLField)fieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldMapping);
  return descriptor;
}
Program: 66399
Project: 66399
Buggy source:
protected ClassDescriptor buildSelectedFieldsLockingPolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(SelectedFieldsLockingPolicy.class);
  descriptor.getInheritancePolicy().setParentClass(OptimisticLockingPolicy.class);
  XMLCompositeCollectionMapping fieldsMapping=new XMLCompositeCollectionMapping();
  fieldsMapping.useCollectionClass(NonSynchronizedVector.class);
  fieldsMapping.setAttributeName("String_Node_Str");
  fieldsMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  fieldsMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(fieldsMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildSelectedFieldsLockingPolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(SelectedFieldsLockingPolicy.class);
  descriptor.getInheritancePolicy().setParentClass(OptimisticLockingPolicy.class);
  XMLCompositeCollectionMapping fieldsMapping=new XMLCompositeCollectionMapping();
  fieldsMapping.useCollectionClass(NonSynchronizedVector.class);
  fieldsMapping.setAttributeName("String_Node_Str");
  fieldsMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  fieldsMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)fieldsMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldsMapping);
  return descriptor;
}
Program: 66400
Project: 66400
Buggy source:
protected ClassDescriptor buildFieldExpressionDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(FieldExpression.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  descriptor.getInheritancePolicy().setParentClass(Expression.class);
  XMLCompositeObjectMapping parameterMapping=new XMLCompositeObjectMapping();
  parameterMapping.setAttributeName("String_Node_Str");
  parameterMapping.setReferenceClass(DatabaseField.class);
  parameterMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(parameterMapping);
  XMLCompositeObjectMapping baseMapping=new XMLCompositeObjectMapping();
  baseMapping.setAttributeName("String_Node_Str");
  baseMapping.setReferenceClass(Expression.class);
  baseMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(baseMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildFieldExpressionDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(FieldExpression.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  descriptor.getInheritancePolicy().setParentClass(Expression.class);
  XMLCompositeObjectMapping parameterMapping=new XMLCompositeObjectMapping();
  parameterMapping.setAttributeName("String_Node_Str");
  parameterMapping.setReferenceClass(DatabaseField.class);
  parameterMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  ((XMLField)parameterMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(parameterMapping);
  XMLCompositeObjectMapping baseMapping=new XMLCompositeObjectMapping();
  baseMapping.setAttributeName("String_Node_Str");
  baseMapping.setReferenceClass(Expression.class);
  baseMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(baseMapping);
  return descriptor;
}
Program: 66402
Project: 66402
Buggy source:
protected ClassDescriptor buildDirectQueryKeyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(DirectQueryKey.class);
  descriptor.getInheritancePolicy().setParentClass(QueryKey.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(fieldMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildDirectQueryKeyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(DirectQueryKey.class);
  descriptor.getInheritancePolicy().setParentClass(QueryKey.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  ((XMLField)fieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldMapping);
  return descriptor;
}
Program: 66403
Project: 66403
Buggy source:
protected ClassDescriptor buildAbstractCompositeObjectMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(AbstractCompositeObjectMapping.class);
  descriptor.getInheritancePolicy().setParentClass(AggregateMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(fieldMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildAbstractCompositeObjectMappingDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(AbstractCompositeObjectMapping.class);
  descriptor.getInheritancePolicy().setParentClass(AggregateMapping.class);
  XMLCompositeObjectMapping fieldMapping=new XMLCompositeObjectMapping();
  fieldMapping.setAttributeName("String_Node_Str");
  fieldMapping.setReferenceClass(DatabaseField.class);
  fieldMapping.setGetMethodName("String_Node_Str");
  fieldMapping.setSetMethodName("String_Node_Str");
  fieldMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  ((XMLField)fieldMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(fieldMapping);
  return descriptor;
}
Program: 66404
Project: 66404
Buggy source:
protected ClassDescriptor buildAssociationDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(Association.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  XMLCompositeObjectMapping keyMapping=new XMLCompositeObjectMapping();
  keyMapping.setAttributeName("String_Node_Str");
  keyMapping.setGetMethodName("String_Node_Str");
  keyMapping.setSetMethodName("String_Node_Str");
  keyMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  keyMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(keyMapping);
  XMLCompositeObjectMapping valueMapping=new XMLCompositeObjectMapping();
  valueMapping.setAttributeName("String_Node_Str");
  valueMapping.setGetMethodName("String_Node_Str");
  valueMapping.setSetMethodName("String_Node_Str");
  valueMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  valueMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(valueMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildAssociationDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(Association.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  XMLCompositeObjectMapping keyMapping=new XMLCompositeObjectMapping();
  keyMapping.setAttributeName("String_Node_Str");
  keyMapping.setGetMethodName("String_Node_Str");
  keyMapping.setSetMethodName("String_Node_Str");
  keyMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  keyMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)keyMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(keyMapping);
  XMLCompositeObjectMapping valueMapping=new XMLCompositeObjectMapping();
  valueMapping.setAttributeName("String_Node_Str");
  valueMapping.setGetMethodName("String_Node_Str");
  valueMapping.setSetMethodName("String_Node_Str");
  valueMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  valueMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)valueMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(valueMapping);
  return descriptor;
}
Program: 66405
Project: 66405
Buggy source:
protected ClassDescriptor buildFieldTranslationDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(FieldTranslation.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  XMLCompositeObjectMapping keyMapping=new XMLCompositeObjectMapping();
  keyMapping.setAttributeName("String_Node_Str");
  keyMapping.setGetMethodName("String_Node_Str");
  keyMapping.setSetMethodName("String_Node_Str");
  keyMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  keyMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(keyMapping);
  XMLCompositeObjectMapping valueMapping=new XMLCompositeObjectMapping();
  valueMapping.setAttributeName("String_Node_Str");
  valueMapping.setGetMethodName("String_Node_Str");
  valueMapping.setSetMethodName("String_Node_Str");
  valueMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  valueMapping.setReferenceClass(DatabaseField.class);
  descriptor.addMapping(valueMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildFieldTranslationDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(FieldTranslation.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  XMLCompositeObjectMapping keyMapping=new XMLCompositeObjectMapping();
  keyMapping.setAttributeName("String_Node_Str");
  keyMapping.setGetMethodName("String_Node_Str");
  keyMapping.setSetMethodName("String_Node_Str");
  keyMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  keyMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)keyMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(keyMapping);
  XMLCompositeObjectMapping valueMapping=new XMLCompositeObjectMapping();
  valueMapping.setAttributeName("String_Node_Str");
  valueMapping.setGetMethodName("String_Node_Str");
  valueMapping.setSetMethodName("String_Node_Str");
  valueMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  valueMapping.setReferenceClass(DatabaseField.class);
  ((XMLField)valueMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(valueMapping);
  return descriptor;
}