jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1149180 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java
Date Thu, 21 Jul 2011 13:55:54 GMT
Author: mduerig
Date: Thu Jul 21 13:55:53 2011
New Revision: 1149180

URL: http://svn.apache.org/viewvc?rev=1149180&view=rev
Log:
JCR-3032: QDefinitionBuilderFactory should auto-subtype from nt:base

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java?rev=1149180&r1=1149179&r2=1149180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java
Thu Jul 21 13:55:53 2011
@@ -120,6 +120,10 @@ public class QDefinitionBuilderFactory e
 
         @Override
         public QNodeTypeDefinition build() {
+            if (supertypes.size() == 0 && !NameConstants.NT_BASE.equals(name)) {
+                supertypes.add(NameConstants.NT_BASE);    
+            }
+
             return new QNodeTypeDefinitionImpl(
                     name,
                     supertypes.toArray(new Name[supertypes.size()]),



Mime
View raw message