jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r722825 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
Date Wed, 03 Dec 2008 09:48:07 GMT
Author: stefan
Date: Wed Dec  3 01:48:06 2008
New Revision: 722825

URL: http://svn.apache.org/viewvc?rev=722825&view=rev
Log:
oops! thanks for spotting this, angela :)

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=722825&r1=722824&r2=722825&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
Wed Dec  3 01:48:06 2008
@@ -845,13 +845,13 @@
                 // FIXME when JCR 2.0 API has been finalized
                 names = ((NodeDefinitionTemplateImpl) ndefs[i]).getRequiredPrimaryTypeNames();
                 qnames = new Name[names.length];
-                for (int j = 0; i < names.length; j++) {
+                for (int j = 0; j < names.length; j++) {
                     try {
-                        qnames[i] = session.getQName(names[i]);
+                        qnames[j] = session.getQName(names[j]);
                     } catch (NamespaceException e) {
-                        throw new InvalidNodeTypeDefinitionException("Invalid required primary
type: " + names[i], e);
+                        throw new InvalidNodeTypeDefinitionException("Invalid required primary
type: " + names[j], e);
                     } catch (NameException e) {
-                        throw new InvalidNodeTypeDefinitionException("Invalid required primary
type: " + names[i], e);
+                        throw new InvalidNodeTypeDefinitionException("Invalid required primary
type: " + names[j], e);
                     }
                 }
                 qndef.setRequiredPrimaryTypes(qnames);



Mime
View raw message