Program: 65589
Project: 65589
Buggy source:
private void processXmlNullPolicy(Property property){
  if (helper.isAnnotationPresent(property.getElement(),XmlNullPolicy.class)) {
    XmlNullPolicy nullPolicy=(XmlNullPolicy)helper.getAnnotation(property.getElement(),XmlNullPolicy.class);
    org.eclipse.persistence.jaxb.xmlmodel.XmlNullPolicy policy=new org.eclipse.persistence.jaxb.xmlmodel.XmlNullPolicy();
    policy.setEmptyNodeRepresentsNull(nullPolicy.emptyNodeRepresentsNull());
    policy.setIsSetPerformedForAbsentNode(nullPolicy.isSetPerformedForAbsentNode());
    policy.setXsiNilRepresentsNull(new Boolean(nullPolicy.xsiNilRepresentsNull()));
    policy.setNullRepresentationForXml(org.eclipse.persistence.jaxb.xmlmodel.XmlMarshalNullRepresentation.valueOf(nullPolicy.nullRepresentationForXml().toString()));
    property.setNullPolicy(policy);
  }
 else   if (helper.isAnnotationPresent(property.getElement(),XmlIsSetNullPolicy.class)) {
    XmlIsSetNullPolicy nullPolicy=(XmlIsSetNullPolicy)helper.getAnnotation(property.getElement(),XmlIsSetNullPolicy.class);
    org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy policy=new org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy();
    policy.setEmptyNodeRepresentsNull(nullPolicy.emptyNodeRepresentsNull());
    policy.setXsiNilRepresentsNull(new Boolean(nullPolicy.xsiNilRepresentsNull()));
    policy.setNullRepresentationForXml(org.eclipse.persistence.jaxb.xmlmodel.XmlMarshalNullRepresentation.valueOf(nullPolicy.nullRepresentationForXml().toString()));
    policy.setIsSetMethodName(nullPolicy.isSetMethodName());
    for (    XmlParameter next : nullPolicy.isSetParameters()) {
      org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy.IsSetParameter param=new org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy.IsSetParameter();
      param.setValue(next.value());
      param.setType(next.type().getName());
      policy.getIsSetParameter().add(param);
    }
    property.setNullPolicy(policy);
  }
}

Fixed version (ground truth):
private void processXmlNullPolicy(Property property){
  if (helper.isAnnotationPresent(property.getElement(),XmlNullPolicy.class)) {
    XmlNullPolicy nullPolicy=(XmlNullPolicy)helper.getAnnotation(property.getElement(),XmlNullPolicy.class);
    org.eclipse.persistence.jaxb.xmlmodel.XmlNullPolicy policy=new org.eclipse.persistence.jaxb.xmlmodel.XmlNullPolicy();
    policy.setEmptyNodeRepresentsNull(nullPolicy.emptyNodeRepresentsNull());
    policy.setIsSetPerformedForAbsentNode(nullPolicy.isSetPerformedForAbsentNode());
    policy.setXsiNilRepresentsNull(Boolean.valueOf(nullPolicy.xsiNilRepresentsNull()));
    policy.setNullRepresentationForXml(org.eclipse.persistence.jaxb.xmlmodel.XmlMarshalNullRepresentation.valueOf(nullPolicy.nullRepresentationForXml().toString()));
    property.setNullPolicy(policy);
  }
 else   if (helper.isAnnotationPresent(property.getElement(),XmlIsSetNullPolicy.class)) {
    XmlIsSetNullPolicy nullPolicy=(XmlIsSetNullPolicy)helper.getAnnotation(property.getElement(),XmlIsSetNullPolicy.class);
    org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy policy=new org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy();
    policy.setEmptyNodeRepresentsNull(nullPolicy.emptyNodeRepresentsNull());
    policy.setXsiNilRepresentsNull(Boolean.valueOf(nullPolicy.xsiNilRepresentsNull()));
    policy.setNullRepresentationForXml(org.eclipse.persistence.jaxb.xmlmodel.XmlMarshalNullRepresentation.valueOf(nullPolicy.nullRepresentationForXml().toString()));
    policy.setIsSetMethodName(nullPolicy.isSetMethodName());
    for (    XmlParameter next : nullPolicy.isSetParameters()) {
      org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy.IsSetParameter param=new org.eclipse.persistence.jaxb.xmlmodel.XmlIsSetNullPolicy.IsSetParameter();
      param.setValue(next.value());
      param.setType(next.type().getName());
      policy.getIsSetParameter().add(param);
    }
    property.setNullPolicy(policy);
  }
}