ADB generated code depends on bug in Woodstox (WSTX-231)
--------------------------------------------------------

                 Key: AXIS2-4986
                 URL: https://issues.apache.org/jira/browse/AXIS2-4986
             Project: Axis2
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.5.4
            Reporter: Andreas Veithen
            Assignee: Andreas Veithen


The ADBBeanTemplate contains the following piece of code (in registerPrefix):

while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
    prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}

According to the Javadoc of NamespaceContext, the getNamespaceURI method never 
returns null. The fact that Woodstox returns null for unbound prefixes is a 
known issue (WSTX-231) that has been fixed on the 4.0 branch.

The ADB code needs to be updated to support both null and the empty string as 
return value of NamespaceContext#getNamespaceURI for unbound prefixes.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to