You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2009/06/09 17:36:09 UTC
svn commit: r783043 -
/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/AbstractSession.java
Author: jukka
Date: Tue Jun 9 15:36:09 2009
New Revision: 783043
URL: http://svn.apache.org/viewvc?rev=783043&view=rev
Log:
JCR-1564: JSR 283 namespace handling
Remove the JCR 1.0 check from namespace remapping
Modified:
jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/AbstractSession.java
Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/AbstractSession.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/AbstractSession.java?rev=783043&r1=783042&r2=783043&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/AbstractSession.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/AbstractSession.java Tue Jun 9 15:36:09 2009
@@ -190,15 +190,6 @@
"Prefix is not a valid XML NCName: " + prefix);
}
- // FIXME Figure out how this should be handled
- // Currently JSR 283 does not specify this exception, but for
- // compatibility with JCR 1.0 TCK it probably should.
- // Note that the solution here also affects the remove() code below
- String previous = namespaces.get(prefix);
- if (previous != null && !previous.equals(uri)) {
- throw new NamespaceException("Namespace already mapped");
- }
-
// Remove existing mapping for the given prefix
namespaces.remove(prefix);