Program: 66197
Project: 66197
Buggy source:
private Property processXmlValue(XmlValue xmlValue,Property oldProperty,TypeInfo info,JavaType javaType){
  resetProperty(oldProperty,info);
  oldProperty.setIsXmlValue(true);
  info.setXmlValueProperty(oldProperty);
  if (xmlValue.getXmlAccessMethods() != null) {
    oldProperty.setMethodProperty(true);
    oldProperty.setGetMethodName(xmlValue.getXmlAccessMethods().getGetMethod());
    oldProperty.setSetMethodName(xmlValue.getXmlAccessMethods().getSetMethod());
  }
  if (!xmlValue.getContainerType().equals(DEFAULT)) {
    setContainerType(oldProperty,xmlValue.getContainerType());
  }
  if (!xmlValue.getType().equals(DEFAULT)) {
    JavaClass pType=jModelInput.getJavaModel().getClass(xmlValue.getType());
    if (aProcessor.isCollectionType(oldProperty.getType())) {
      oldProperty.setGenericType(pType);
    }
 else {
      oldProperty.setType(pType);
    }
    if (aProcessor.shouldGenerateTypeInfo(pType) && aProcessor.getTypeInfo().get(pType.getQualifiedName()) == null) {
      aProcessor.buildNewTypeInfo(new JavaClass[]{pType});
    }
  }
  if (xmlValue.getXmlJavaTypeAdapter() != null) {
    try {
      oldProperty.setXmlJavaTypeAdapter(xmlValue.getXmlJavaTypeAdapter());
    }
 catch (    JAXBException e) {
      throw JAXBException.invalidPropertyAdapterClass(xmlValue.getXmlJavaTypeAdapter().getValue(),xmlValue.getJavaAttribute(),javaType.getName());
    }
  }
  if (xmlValue.isSetReadOnly()) {
    oldProperty.setReadOnly(xmlValue.isReadOnly());
  }
  if (xmlValue.isSetWriteOnly()) {
    oldProperty.setWriteOnly(xmlValue.isWriteOnly());
  }
  if (xmlValue.isSetCdata()) {
    oldProperty.setCdata(xmlValue.isCdata());
  }
  if (xmlValue.getXmlAbstractNullPolicy() != null) {
    JAXBElement jaxbElt=xmlValue.getXmlAbstractNullPolicy();
    oldProperty.setNullPolicy((XmlAbstractNullPolicy)jaxbElt.getValue());
  }
  if (xmlValue.getXmlProperties() != null && xmlValue.getXmlProperties().getXmlProperty().size() > 0) {
    oldProperty.setUserProperties(createUserPropertyMap(xmlValue.getXmlProperties().getXmlProperty()));
  }
  return oldProperty;
}

Fixed version (ground truth):
private Property processXmlValue(XmlValue xmlValue,Property oldProperty,TypeInfo info,JavaType javaType){
  resetProperty(oldProperty,info);
  oldProperty.setIsXmlValue(true);
  info.setXmlValueProperty(oldProperty);
  if (xmlValue.getXmlAccessMethods() != null) {
    oldProperty.setMethodProperty(true);
    oldProperty.setGetMethodName(xmlValue.getXmlAccessMethods().getGetMethod());
    oldProperty.setSetMethodName(xmlValue.getXmlAccessMethods().getSetMethod());
  }
  if (!xmlValue.getContainerType().equals(DEFAULT)) {
    setContainerType(oldProperty,xmlValue.getContainerType());
  }
  if (!xmlValue.getType().equals(DEFAULT)) {
    JavaClass pType=jModelInput.getJavaModel().getClass(xmlValue.getType());
    if (aProcessor.isCollectionType(oldProperty.getType())) {
      oldProperty.setGenericType(pType);
    }
 else {
      oldProperty.setType(pType);
    }
    if (aProcessor.shouldGenerateTypeInfo(pType) && aProcessor.getTypeInfo().get(pType.getQualifiedName()) == null) {
      aProcessor.buildNewTypeInfo(new JavaClass[]{pType});
    }
  }
  reapplyPackageAndClassAdapters(oldProperty,info);
  if (xmlValue.getXmlJavaTypeAdapter() != null) {
    try {
      oldProperty.setXmlJavaTypeAdapter(xmlValue.getXmlJavaTypeAdapter());
    }
 catch (    JAXBException e) {
      throw JAXBException.invalidPropertyAdapterClass(xmlValue.getXmlJavaTypeAdapter().getValue(),xmlValue.getJavaAttribute(),javaType.getName());
    }
  }
  if (xmlValue.isSetReadOnly()) {
    oldProperty.setReadOnly(xmlValue.isReadOnly());
  }
  if (xmlValue.isSetWriteOnly()) {
    oldProperty.setWriteOnly(xmlValue.isWriteOnly());
  }
  if (xmlValue.isSetCdata()) {
    oldProperty.setCdata(xmlValue.isCdata());
  }
  if (xmlValue.getXmlAbstractNullPolicy() != null) {
    JAXBElement jaxbElt=xmlValue.getXmlAbstractNullPolicy();
    oldProperty.setNullPolicy((XmlAbstractNullPolicy)jaxbElt.getValue());
  }
  if (xmlValue.getXmlProperties() != null && xmlValue.getXmlProperties().getXmlProperty().size() > 0) {
    oldProperty.setUserProperties(createUserPropertyMap(xmlValue.getXmlProperties().getXmlProperty()));
  }
  return oldProperty;
}