directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r659739 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
Date Sat, 24 May 2008 01:13:28 GMT
Author: akarasulu
Date: Fri May 23 18:13:27 2008
New Revision: 659739

URL: http://svn.apache.org/viewvc?rev=659739&view=rev
Log:
fixing bug with closiing of wrapped cursor on successful next operation

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java?rev=659739&r1=659738&r2=659739&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
Fri May 23 18:13:27 2008
@@ -101,7 +101,7 @@
         try
         {
             entry = cursor.get();
-            if ( available != cursor.next() )
+            if ( available = cursor.next() == false )
             {
                 cursor.close();
             }



Mime
View raw message