Program: 66406
Project: 66406
Buggy source:
protected ClassDescriptor buildInheritancePolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(InheritancePolicy.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  descriptor.getInheritancePolicy().setClassIndicatorField(new XMLField("String_Node_Str"));
  descriptor.getInheritancePolicy().addClassIndicator(InheritancePolicy.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(QNameInheritancePolicy.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(String.class,"String_Node_Str");
  XMLDirectMapping parentClassMapping=new XMLDirectMapping();
  parentClassMapping.setAttributeName("String_Node_Str");
  parentClassMapping.setGetMethodName("String_Node_Str");
  parentClassMapping.setSetMethodName("String_Node_Str");
  parentClassMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(parentClassMapping);
  XMLDirectMapping shouldReadSubclassesMapping=new XMLDirectMapping();
  shouldReadSubclassesMapping.setAttributeName("String_Node_Str");
  shouldReadSubclassesMapping.setGetMethodName("String_Node_Str");
  shouldReadSubclassesMapping.setSetMethodName("String_Node_Str");
  shouldReadSubclassesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(shouldReadSubclassesMapping);
  XMLDirectMapping readAllSubclassesViewMapping=new XMLDirectMapping();
  readAllSubclassesViewMapping.setAttributeName("String_Node_Str");
  readAllSubclassesViewMapping.setGetMethodName("String_Node_Str");
  readAllSubclassesViewMapping.setSetMethodName("String_Node_Str");
  readAllSubclassesViewMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(readAllSubclassesViewMapping);
  XMLDirectMapping shouldUseClassNameAsIndicatorMapping=new XMLDirectMapping();
  shouldUseClassNameAsIndicatorMapping.setAttributeName("String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setGetMethodName("String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setSetMethodName("String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setNullValue(Boolean.FALSE);
  descriptor.addMapping(shouldUseClassNameAsIndicatorMapping);
  XMLDirectMapping classExtractionMethodMapping=new XMLDirectMapping();
  classExtractionMethodMapping.setAttributeName("String_Node_Str");
  classExtractionMethodMapping.setGetMethodName("String_Node_Str");
  classExtractionMethodMapping.setSetMethodName("String_Node_Str");
  classExtractionMethodMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(classExtractionMethodMapping);
  XMLCompositeObjectMapping classIndicatorFieldNameMapping=new XMLCompositeObjectMapping();
  classIndicatorFieldNameMapping.setAttributeName("String_Node_Str");
  classIndicatorFieldNameMapping.setReferenceClass(DatabaseField.class);
  classIndicatorFieldNameMapping.setGetMethodName("String_Node_Str");
  classIndicatorFieldNameMapping.setSetMethodName("String_Node_Str");
  classIndicatorFieldNameMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(classIndicatorFieldNameMapping);
  XMLCompositeCollectionMapping classIndicatorsMapping=new XMLCompositeCollectionMapping();
  classIndicatorsMapping.setAttributeName("String_Node_Str");
  classIndicatorsMapping.setGetMethodName("String_Node_Str");
  classIndicatorsMapping.setSetMethodName("String_Node_Str");
  classIndicatorsMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  classIndicatorsMapping.setReferenceClass(TypedAssociation.class);
  descriptor.addMapping(classIndicatorsMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildInheritancePolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(InheritancePolicy.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  descriptor.getInheritancePolicy().setClassIndicatorField(new XMLField("String_Node_Str"));
  descriptor.getInheritancePolicy().addClassIndicator(InheritancePolicy.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(QNameInheritancePolicy.class,getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.getInheritancePolicy().addClassIndicator(String.class,"String_Node_Str");
  XMLDirectMapping parentClassMapping=new XMLDirectMapping();
  parentClassMapping.setAttributeName("String_Node_Str");
  parentClassMapping.setGetMethodName("String_Node_Str");
  parentClassMapping.setSetMethodName("String_Node_Str");
  parentClassMapping.setXPath(getSecondaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(parentClassMapping);
  XMLDirectMapping shouldReadSubclassesMapping=new XMLDirectMapping();
  shouldReadSubclassesMapping.setAttributeName("String_Node_Str");
  shouldReadSubclassesMapping.setGetMethodName("String_Node_Str");
  shouldReadSubclassesMapping.setSetMethodName("String_Node_Str");
  shouldReadSubclassesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(shouldReadSubclassesMapping);
  XMLDirectMapping readAllSubclassesViewMapping=new XMLDirectMapping();
  readAllSubclassesViewMapping.setAttributeName("String_Node_Str");
  readAllSubclassesViewMapping.setGetMethodName("String_Node_Str");
  readAllSubclassesViewMapping.setSetMethodName("String_Node_Str");
  readAllSubclassesViewMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(readAllSubclassesViewMapping);
  XMLDirectMapping shouldUseClassNameAsIndicatorMapping=new XMLDirectMapping();
  shouldUseClassNameAsIndicatorMapping.setAttributeName("String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setGetMethodName("String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setSetMethodName("String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  shouldUseClassNameAsIndicatorMapping.setNullValue(Boolean.FALSE);
  descriptor.addMapping(shouldUseClassNameAsIndicatorMapping);
  XMLDirectMapping classExtractionMethodMapping=new XMLDirectMapping();
  classExtractionMethodMapping.setAttributeName("String_Node_Str");
  classExtractionMethodMapping.setGetMethodName("String_Node_Str");
  classExtractionMethodMapping.setSetMethodName("String_Node_Str");
  classExtractionMethodMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  descriptor.addMapping(classExtractionMethodMapping);
  XMLCompositeObjectMapping classIndicatorFieldNameMapping=new XMLCompositeObjectMapping();
  classIndicatorFieldNameMapping.setAttributeName("String_Node_Str");
  classIndicatorFieldNameMapping.setReferenceClass(DatabaseField.class);
  classIndicatorFieldNameMapping.setGetMethodName("String_Node_Str");
  classIndicatorFieldNameMapping.setSetMethodName("String_Node_Str");
  classIndicatorFieldNameMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  ((XMLField)classIndicatorFieldNameMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(classIndicatorFieldNameMapping);
  XMLCompositeCollectionMapping classIndicatorsMapping=new XMLCompositeCollectionMapping();
  classIndicatorsMapping.setAttributeName("String_Node_Str");
  classIndicatorsMapping.setGetMethodName("String_Node_Str");
  classIndicatorsMapping.setSetMethodName("String_Node_Str");
  classIndicatorsMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  classIndicatorsMapping.setReferenceClass(TypedAssociation.class);
  descriptor.addMapping(classIndicatorsMapping);
  return descriptor;
}