jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: rev 53950 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/version
Date Thu, 07 Oct 2004 08:37:43 GMT
Author: tripod
Date: Thu Oct  7 01:37:41 2004
New Revision: 53950

Modified:
   incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
Log:
fixed endless loop (http://issues.apache.org/jira/browse/JCR-6)

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/version/VersionIteratorImpl.java
Thu Oct  7 01:37:41 2004
@@ -69,7 +69,7 @@
         if (successors.isEmpty()) {
             throw new NoSuchElementException();
         }
-        InternalVersion ret = (InternalVersion) successors.peek();
+        InternalVersion ret = (InternalVersion) successors.pop();
         visited.add(ret);
         pos++;
         push(ret.getSuccessors());

Mime
View raw message