Program: 67056
Project: 67056
Buggy source:
public XMLCompositeCollectionMapping generateCompositeCollectionMapping(Property property,XMLDescriptor descriptor,NamespaceInfo namespaceInfo,String referenceClassName){
  XMLCompositeCollectionMapping mapping=new XMLCompositeCollectionMapping();
  mapping.setAttributeName(property.getPropertyName());
  mapping.setReuseContainer(true);
  if (property.isMethodProperty()) {
    if (property.getGetMethodName() == null) {
      String paramTypeAsString=property.getType().getName();
      mapping.setAttributeAccessor(new JAXBSetMethodAttributeAccessor(paramTypeAsString,helper.getClassLoader()));
      mapping.setIsReadOnly(true);
      mapping.setSetMethodName(property.getSetMethodName());
    }
 else     if (property.getSetMethodName() == null) {
      mapping.setGetMethodName(property.getGetMethodName());
      mapping.setIsWriteOnly(true);
    }
 else {
      mapping.setSetMethodName(property.getSetMethodName());
      mapping.setGetMethodName(property.getGetMethodName());
    }
  }
  if (property.isNillable()) {
    mapping.getNullPolicy().setNullRepresentedByXsiNil(true);
  }
  JavaClass collectionType=property.getType();
  if (collectionType.isArray()) {
    JAXBObjectArrayAttributeAccessor accessor=new JAXBObjectArrayAttributeAccessor(mapping.getAttributeAccessor(),mapping.getContainerPolicy());
    accessor.setComponentClassName(collectionType.getComponentType().getRawName());
    mapping.setAttributeAccessor(accessor);
    collectionType=jotArrayList;
  }
 else   if (areEquals(collectionType,Collection.class) || areEquals(collectionType,List.class)) {
    collectionType=jotArrayList;
  }
 else   if (areEquals(collectionType,Set.class)) {
    collectionType=jotHashSet;
  }
  mapping.useCollectionClassName(collectionType.getRawName());
  XMLField xmlField=getXPathForField(property,namespaceInfo,false);
  mapping.setXPath(xmlField.getXPath());
  if (referenceClassName == null) {
    ((XMLField)mapping.getField()).setIsTypedTextField(true);
    ((XMLField)mapping.getField()).setSchemaType(XMLConstants.ANY_TYPE_QNAME);
  }
 else {
    mapping.setReferenceClassName(referenceClassName);
  }
  if (helper.isAnnotationPresent(property.getElement(),XmlContainerProperty.class)) {
    XmlContainerProperty containerProp=(XmlContainerProperty)helper.getAnnotation(property.getElement(),XmlContainerProperty.class);
    String name=containerProp.value();
    mapping.setContainerAttributeName(name);
    if (!containerProp.getMethodName().equals("String_Node_Str") && !containerProp.setMethodName().equals("String_Node_Str")) {
      mapping.setContainerGetMethodName(containerProp.getMethodName());
      mapping.setContainerSetMethodName(containerProp.setMethodName());
    }
  }
  descriptor.addMapping(mapping);
  return mapping;
}

Fixed version (ground truth):
public XMLCompositeCollectionMapping generateCompositeCollectionMapping(Property property,XMLDescriptor descriptor,NamespaceInfo namespaceInfo,String referenceClassName){
  XMLCompositeCollectionMapping mapping=new XMLCompositeCollectionMapping();
  mapping.setAttributeName(property.getPropertyName());
  mapping.setReuseContainer(true);
  if (property.isMethodProperty()) {
    if (property.getGetMethodName() == null) {
      String paramTypeAsString=property.getType().getName();
      mapping.setAttributeAccessor(new JAXBSetMethodAttributeAccessor(paramTypeAsString,helper.getClassLoader()));
      mapping.setIsReadOnly(true);
      mapping.setSetMethodName(property.getSetMethodName());
    }
 else     if (property.getSetMethodName() == null) {
      mapping.setGetMethodName(property.getGetMethodName());
      mapping.setIsWriteOnly(true);
    }
 else {
      mapping.setSetMethodName(property.getSetMethodName());
      mapping.setGetMethodName(property.getGetMethodName());
    }
  }
  if (property.isNillable()) {
    mapping.getNullPolicy().setNullRepresentedByXsiNil(true);
  }
  JavaClass collectionType=property.getType();
  if (collectionType.isArray()) {
    JAXBObjectArrayAttributeAccessor accessor=new JAXBObjectArrayAttributeAccessor(mapping.getAttributeAccessor(),mapping.getContainerPolicy());
    accessor.setComponentClassName(collectionType.getComponentType().getRawName());
    mapping.setAttributeAccessor(accessor);
    collectionType=jotArrayList;
  }
 else   if (areEquals(collectionType,Collection.class) || areEquals(collectionType,List.class)) {
    collectionType=jotArrayList;
  }
 else   if (areEquals(collectionType,Set.class)) {
    collectionType=jotHashSet;
  }
  mapping.useCollectionClassName(collectionType.getRawName());
  XMLField xmlField=getXPathForField(property,namespaceInfo,false);
  mapping.setXPath(xmlField.getXPath());
  if (referenceClassName == null) {
    ((XMLField)mapping.getField()).setIsTypedTextField(true);
    ((XMLField)mapping.getField()).setSchemaType(XMLConstants.ANY_TYPE_QNAME);
  }
 else {
    mapping.setReferenceClassName(referenceClassName);
  }
  if (property.isRequired()) {
    ((XMLField)mapping.getField()).setRequired(true);
  }
  if (helper.isAnnotationPresent(property.getElement(),XmlContainerProperty.class)) {
    XmlContainerProperty containerProp=(XmlContainerProperty)helper.getAnnotation(property.getElement(),XmlContainerProperty.class);
    String name=containerProp.value();
    mapping.setContainerAttributeName(name);
    if (!containerProp.getMethodName().equals("String_Node_Str") && !containerProp.setMethodName().equals("String_Node_Str")) {
      mapping.setContainerGetMethodName(containerProp.getMethodName());
      mapping.setContainerSetMethodName(containerProp.setMethodName());
    }
  }
  descriptor.addMapping(mapping);
  return mapping;
}