You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Scott McFarlane (JIRA)" <xm...@xml.apache.org> on 2013/06/05 20:52:21 UTC

[jira] [Created] (XMLBEANS-500) In org.apache.xmlbeans.impl.store.Saver.java constructor prefix and uri added to map in reverse

Scott McFarlane created XMLBEANS-500:
----------------------------------------

             Summary: In org.apache.xmlbeans.impl.store.Saver.java constructor prefix and uri added to map in reverse
                 Key: XMLBEANS-500
                 URL: https://issues.apache.org/jira/browse/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 Saver.java 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) i.next();
                addMapping( prefix, (String) m.get( prefix ) );

Suggested code is:
                String uri = (String) i.next();
                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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org