Program: 68132
Project: 68132
Buggy source:
private XMLDescriptor buildRestrictionDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(Restriction.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLDirectMapping baseTypeMapping=new XMLDirectMapping();
  baseTypeMapping.setAttributeName("String_Node_Str");
  baseTypeMapping.setXPath("String_Node_Str");
  descriptor.addMapping(baseTypeMapping);
  XMLCompositeObjectMapping sequenceMapping=new XMLCompositeObjectMapping();
  sequenceMapping.setReferenceClass(Sequence.class);
  sequenceMapping.setAttributeName("String_Node_Str");
  sequenceMapping.setSetMethodName("String_Node_Str");
  sequenceMapping.setGetMethodName("String_Node_Str");
  sequenceMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(sequenceMapping);
  XMLCompositeObjectMapping choiceMapping=new XMLCompositeObjectMapping();
  choiceMapping.setReferenceClass(Choice.class);
  choiceMapping.setAttributeName("String_Node_Str");
  choiceMapping.setSetMethodName("String_Node_Str");
  choiceMapping.setGetMethodName("String_Node_Str");
  choiceMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(choiceMapping);
  XMLCompositeObjectMapping allMapping=new XMLCompositeObjectMapping();
  allMapping.setReferenceClass(All.class);
  allMapping.setAttributeName("String_Node_Str");
  allMapping.setSetMethodName("String_Node_Str");
  allMapping.setGetMethodName("String_Node_Str");
  allMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(allMapping);
  XMLCompositeObjectMapping simpleTypeMapping=new XMLCompositeObjectMapping();
  simpleTypeMapping.setReferenceClass(SimpleType.class);
  simpleTypeMapping.setAttributeName("String_Node_Str");
  simpleTypeMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(simpleTypeMapping);
  XMLCompositeCollectionMapping attributesMapping=new XMLCompositeCollectionMapping();
  attributesMapping.setReferenceClass(Attribute.class);
  attributesMapping.setAttributeName("String_Node_Str");
  attributesMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(attributesMapping);
  XMLCompositeObjectMapping anyAttributeMapping=new XMLCompositeObjectMapping();
  anyAttributeMapping.setReferenceClass(AnyAttribute.class);
  anyAttributeMapping.setAttributeName("String_Node_Str");
  anyAttributeMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(anyAttributeMapping);
  XMLCompositeDirectCollectionMapping enumerationFacetsMapping=new XMLCompositeDirectCollectionMapping();
  enumerationFacetsMapping.setAttributeName("String_Node_Str");
  enumerationFacetsMapping.useCollectionClass(java.util.ArrayList.class);
  enumerationFacetsMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str");
  descriptor.addMapping(enumerationFacetsMapping);
  return descriptor;
}

Fixed version (ground truth):
private XMLDescriptor buildRestrictionDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(Restriction.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLDirectMapping baseTypeMapping=new XMLDirectMapping();
  baseTypeMapping.setAttributeName("String_Node_Str");
  baseTypeMapping.setXPath("String_Node_Str");
  descriptor.addMapping(baseTypeMapping);
  XMLCompositeObjectMapping sequenceMapping=new XMLCompositeObjectMapping();
  sequenceMapping.setReferenceClass(Sequence.class);
  sequenceMapping.setAttributeName("String_Node_Str");
  sequenceMapping.setSetMethodName("String_Node_Str");
  sequenceMapping.setGetMethodName("String_Node_Str");
  sequenceMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(sequenceMapping);
  XMLCompositeObjectMapping choiceMapping=new XMLCompositeObjectMapping();
  choiceMapping.setReferenceClass(Choice.class);
  choiceMapping.setAttributeName("String_Node_Str");
  choiceMapping.setSetMethodName("String_Node_Str");
  choiceMapping.setGetMethodName("String_Node_Str");
  choiceMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(choiceMapping);
  XMLCompositeObjectMapping allMapping=new XMLCompositeObjectMapping();
  allMapping.setReferenceClass(All.class);
  allMapping.setAttributeName("String_Node_Str");
  allMapping.setSetMethodName("String_Node_Str");
  allMapping.setGetMethodName("String_Node_Str");
  allMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(allMapping);
  XMLCompositeObjectMapping simpleTypeMapping=new XMLCompositeObjectMapping();
  simpleTypeMapping.setReferenceClass(SimpleType.class);
  simpleTypeMapping.setAttributeName("String_Node_Str");
  simpleTypeMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(simpleTypeMapping);
  XMLCompositeCollectionMapping attributesMapping=new XMLCompositeCollectionMapping();
  attributesMapping.setReferenceClass(Attribute.class);
  attributesMapping.setAttributeName("String_Node_Str");
  attributesMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(attributesMapping);
  XMLCompositeObjectMapping anyAttributeMapping=new XMLCompositeObjectMapping();
  anyAttributeMapping.setReferenceClass(AnyAttribute.class);
  anyAttributeMapping.setAttributeName("String_Node_Str");
  anyAttributeMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str" + "String_Node_Str");
  descriptor.addMapping(anyAttributeMapping);
  XMLDirectMapping minInclusiveMapping=new XMLDirectMapping();
  minInclusiveMapping.setAttributeName("String_Node_Str");
  minInclusiveMapping.setSetMethodName("String_Node_Str");
  minInclusiveMapping.setGetMethodName("String_Node_Str");
  minInclusiveMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str");
  descriptor.addMapping(minInclusiveMapping);
  XMLDirectMapping maxInclusiveMapping=new XMLDirectMapping();
  maxInclusiveMapping.setAttributeName("String_Node_Str");
  maxInclusiveMapping.setSetMethodName("String_Node_Str");
  maxInclusiveMapping.setGetMethodName("String_Node_Str");
  maxInclusiveMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str");
  descriptor.addMapping(maxInclusiveMapping);
  XMLDirectMapping minExclusiveMapping=new XMLDirectMapping();
  minExclusiveMapping.setAttributeName("String_Node_Str");
  minExclusiveMapping.setSetMethodName("String_Node_Str");
  minExclusiveMapping.setGetMethodName("String_Node_Str");
  minExclusiveMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str");
  descriptor.addMapping(minExclusiveMapping);
  XMLDirectMapping maxExclusiveMapping=new XMLDirectMapping();
  maxExclusiveMapping.setAttributeName("String_Node_Str");
  maxExclusiveMapping.setSetMethodName("String_Node_Str");
  maxExclusiveMapping.setGetMethodName("String_Node_Str");
  maxExclusiveMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str");
  descriptor.addMapping(maxExclusiveMapping);
  XMLCompositeDirectCollectionMapping enumerationFacetsMapping=new XMLCompositeDirectCollectionMapping();
  enumerationFacetsMapping.setAttributeName("String_Node_Str");
  enumerationFacetsMapping.useCollectionClass(java.util.ArrayList.class);
  enumerationFacetsMapping.setXPath(XMLConstants.SCHEMA_PREFIX + "String_Node_Str");
  descriptor.addMapping(enumerationFacetsMapping);
  return descriptor;
}