[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] [Created] (XMLBEANS-500) In org.apache.xmlbeans.impl.store.Saver.java constructor prefix and
From: "Scott McFarlane (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2013-06-05 18:52:21
Message-ID: JIRA.12651184.1370458318226.73244.1370458341223 () arcas
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic