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-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: dev-h...@xmlbeans.apache.org