jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r786089 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDef.java
Date Thu, 18 Jun 2009 14:39:29 GMT
Author: mreutegg
Date: Thu Jun 18 14:39:29 2009
New Revision: 786089

URL: http://svn.apache.org/viewvc?rev=786089&view=rev
Log:
JCR-2158 Consolidate CND related classes from SPI and Core
- NodeTypeDef.getQNodeTypeDefinition() throws ArrayIndexOutOfBoundsException

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDef.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDef.java?rev=786089&r1=786088&r2=786089&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDef.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDef.java
Thu Jun 18 14:39:29 2009
@@ -106,7 +106,7 @@
         for (NodeDef nd: nodeDefs) {
             qNodeDefs[i++] = ((NodeDefImpl) nd).getQNodeDefinition();
         }
-        QPropertyDefinition[] qPropDefs = new QPropertyDefinition[nodeDefs.size()];
+        QPropertyDefinition[] qPropDefs = new QPropertyDefinition[propDefs.size()];
         i=0;
         for (PropDef pd: propDefs) {
             qPropDefs[i++] = ((PropDefImpl) pd).getQPropertyDefinition();



Mime
View raw message