jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1158778 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/QDefinitionBuilderFactory.java
Date Wed, 17 Aug 2011 15:45:37 GMT
Author: mduerig
Date: Wed Aug 17 15:45:37 2011
New Revision: 1158778

URL: http://svn.apache.org/viewvc?rev=1158778&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=1158778&r1=1158777&r2=1158778&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
Wed Aug 17 15:45:37 2011
@@ -120,8 +120,8 @@ public class QDefinitionBuilderFactory e
 
         @Override
         public QNodeTypeDefinition build() {
-            if (supertypes.size() == 0 && !NameConstants.NT_BASE.equals(name)) {
-                supertypes.add(NameConstants.NT_BASE);    
+            if (!isMixin && !NameConstants.NT_BASE.equals(name)) {
+                supertypes.add(NameConstants.NT_BASE);
             }
 
             return new QNodeTypeDefinitionImpl(



Mime
View raw message