You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by tr...@apache.org on 2005/10/05 18:33:59 UTC

svn commit: r295030 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java

Author: tripod
Date: Wed Oct  5 09:33:51 2005
New Revision: 295030

URL: http://svn.apache.org/viewcvs?rev=295030&view=rev
Log:
JCR-240 redefinition of xml-namespace mapping should not be allowed

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java?rev=295030&r1=295029&r2=295030&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/LocalNamespaceMappings.java Wed Oct  5 09:33:51 2005
@@ -81,6 +81,10 @@
                 || QName.NS_DEFAULT_URI.equals(uri)) {
             throw new NamespaceException("default namespace is reserved and can not be changed");
         }
+        // special case: xml namespace
+        if (uri.equals(QName.NS_XML_URI)) {
+            throw new NamespaceException("xml namespace is reserved and can not be changed.");
+        }
         // special case: prefixes xml*
         if (prefix.toLowerCase().startsWith(QName.NS_XML_PREFIX)) {
             throw new NamespaceException("reserved prefix: " + prefix);