directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r414827 - /directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
Date Fri, 16 Jun 2006 13:48:47 GMT
Author: ersiner
Date: Fri Jun 16 06:48:46 2006
New Revision: 414827

URL: http://svn.apache.org/viewvc?rev=414827&view=rev
Log:
Fixed a class cast issue.

Modified:
    directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java

Modified: directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java?rev=414827&r1=414826&r2=414827&view=diff
==============================================================================
--- directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
(original)
+++ directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
Fri Jun 16 06:48:46 2006
@@ -44,6 +44,8 @@
  */
 public class JavaStoredProcedureExtendedOperationHandler implements LanguageSpecificStoredProceureExtendedOperationHandler
 {
+    private static final Class[] EMPTY_CLASS_ARRAY = new Class[0];
+    
     public void handleStoredProcedureExtendedOperation( ServerLdapContext ctx, StoredProcedure
pojo ) 
         throws ClassNotFoundException, NamingException
     {
@@ -109,7 +111,7 @@
         
         // TODO determine what to do with the exception
         executeProcedure( ctx, StringTools.utf8ToString( pojo.getProcedure() ), 
-                ( Class[] ) types.toArray(), values.toArray() );
+                ( Class[] ) types.toArray( EMPTY_CLASS_ARRAY ), values.toArray() );
     }
 
     



Mime
View raw message