directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r419931 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/sp/StoredProcedureUtils.java
Date Fri, 07 Jul 2006 17:36:35 GMT
Author: ersiner
Date: Fri Jul  7 10:36:34 2006
New Revision: 419931

URL: http://svn.apache.org/viewvc?rev=419931&view=rev
Log:
Fixed a bug with handling multiple arguments during stored procedure call.

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/sp/StoredProcedureUtils.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/sp/StoredProcedureUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/sp/StoredProcedureUtils.java?rev=419931&r1=419930&r2=419931&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/sp/StoredProcedureUtils.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/sp/StoredProcedureUtils.java
Fri Jul  7 10:36:34 2006
@@ -126,12 +126,15 @@
         try
         {
             StoredProcedureRequest req = new StoredProcedureRequest( 0, procedureName, language
);
-            ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            ObjectOutputStream oos = new ObjectOutputStream( baos );
-            
             for ( int i = 0; i < arguments.length; i++ )
             {
                 byte[] type = arguments[i].getClass().getName().getBytes( "UTF-8" );
+                
+                /**
+                 * FIXME: We need to reuse the object stream instances here.
+                 */
+                ByteArrayOutputStream baos = new ByteArrayOutputStream();
+                ObjectOutputStream oos = new ObjectOutputStream( baos );
                 
                 oos.reset();
                 oos.writeObject( arguments[i] );



Mime
View raw message