jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r657826 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
Date Mon, 19 May 2008 13:25:46 GMT
Author: stefan
Date: Mon May 19 06:25:45 2008
New Revision: 657826

URL: http://svn.apache.org/viewvc?rev=657826&view=rev
Log:
JCR-1591: JSR 283: NodeType Management

JCR-1611: Registering NodeType from templates throws exception about invalid decl. node type

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java?rev=657826&r1=657825&r2=657826&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
Mon May 19 06:25:45 2008
@@ -810,6 +810,8 @@
             NodeDef[] qndefs = new NodeDef[ndefs.length];
             for (int i = 0; i < ndefs.length; i++) {
                 NodeDefImpl qndef = new NodeDefImpl();
+                // declaring node type
+                qndef.setDeclaringNodeType(def.getName());
                 // name
                 name = ndefs[i].getName();
                 if (name != null) {
@@ -872,6 +874,8 @@
             PropDef[] qpdefs = new PropDef[pdefs.length];
             for (int i = 0; i < pdefs.length; i++) {
                 PropDefImpl qpdef = new PropDefImpl();
+                // declaring node type
+                qpdef.setDeclaringNodeType(def.getName());
                 // name
                 name = pdefs[i].getName();
                 if (name != null) {



Mime
View raw message