[ http://issues.apache.org/jira/browse/JCR-283?page=all ]
Stefan Guggisberg closed JCR-283:
---------------------------------
Resolution: Fixed
fixed in svn r349939
> NamespaceRegistry.registerNamespace(pre, uri) might accidentally remove
> namespace in certain situations
> --------------------------------------------------------------------------------------------------------
>
> Key: JCR-283
> URL: http://issues.apache.org/jira/browse/JCR-283
> Project: Jackrabbit
> Type: Bug
> Components: API
> Environment: svn r349905
> Reporter: Stefan Guggisberg
> Assignee: Stefan Guggisberg
> Fix For: 1.0
>
> assume the following mappings exist in the global NamespaceRegistry:
> pre1 <-> uri1
> pre2 <-> uri2
> the following stmt correclty throws a NamespaceException, complaining that an
> existing prefix can not be remapped:
> nsReg.registerNamespace("pre2", "uri1")
> but, as a sideeffect, it has also removed the mapping pre1 <-> uri1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira