directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r415455 - /directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/sp/LdapClassLoader.java
Date Mon, 19 Jun 2006 23:01:23 GMT
Author: ersiner
Date: Mon Jun 19 16:01:22 2006
New Revision: 415455

URL: http://svn.apache.org/viewvc?rev=415455&view=rev
Log:
Made the class loader exit on first hit of the searched class.

Modified:
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/sp/LdapClassLoader.java

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/sp/LdapClassLoader.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/sp/LdapClassLoader.java?rev=415455&r1=415454&r2=415455&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/sp/LdapClassLoader.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/sp/LdapClassLoader.java
Mon Jun 19 16:01:22 2006
@@ -87,7 +87,7 @@
                     SearchResult javaClassEntry = ( SearchResult ) javaClassEntries.next();
                     Attribute byteCode = javaClassEntry.getAttributes().get( "byteCode" );
                     classBytes = ( byte[] ) byteCode.get();
-                    continue;
+                    break; // exit on first hit!
                 }
             }
         }



Mime
View raw message