jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r654731 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.java
Date Fri, 09 May 2008 09:17:23 GMT
Author: stefan
Date: Fri May  9 02:17:23 2008
New Revision: 654731

URL: http://svn.apache.org/viewvc?rev=654731&view=rev
Log:
JCR-1581: ClassCastException when registering new 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=654731&r1=654730&r2=654731&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
Fri May  9 02:17:23 2008
@@ -703,11 +703,7 @@
             ArrayList result = new ArrayList();
 
             // register new node types
-            Collection registeredDefs = registerNodeTypes(addedDefs);
-            for (Iterator iter = registeredDefs.iterator(); iter.hasNext();) {
-                NodeTypeDef nodeTypeDef = (NodeTypeDef) iter.next();
-                result.add(getNodeType(nodeTypeDef.getName()));
-            }
+            result.addAll(registerNodeTypes(addedDefs));
 
             // reregister already existing node types
             for (Iterator iter = modifiedDefs.iterator(); iter.hasNext();) {



Mime
View raw message