Scott McFarlane created XMLBEANS-500:

             Summary: In constructor 
prefix and uri added to map in reverse
                 Key: XMLBEANS-500
             Project: XMLBeans
          Issue Type: Bug
    Affects Versions: Version 2.6
         Environment: Happens when XmlOptions.SAVE_IMPLICIT_NAMESPACES is set.
            Reporter: Scott McFarlane
            Priority: Minor

On lines 98 and 99 of the prefix and uri fields are reversed when 
calling the addMapping method.  This causes namespaces to not be set as 
requested because _uriMap and _prefixMap lookups don't work correctly.
Original code is:
                String prefix = (String);
                addMapping( prefix, (String) m.get( prefix ) );

Suggested code is:
                String uri = (String);
                addMapping( (String) m.get( uri ), uri);

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to