Im not sure this is not made automaticly by the StreamImplementation..
Anyway to call the flush is the "correct way". Should we backport it ?

bye
Norman

Am Freitag, den 16.06.2006, 18:05 +0000 schrieb [EMAIL PROTECTED]:
> Author: norman
> Date: Fri Jun 16 11:05:43 2006
> New Revision: 414873
> 
> URL: http://svn.apache.org/viewvc?rev=414873&view=rev
> Log:
> The ObjectOutputStream in cloneSerializableObject was not get flushed. 
> 
> Modified:
>     james/server/trunk/src/java/org/apache/james/core/MailImpl.java
> 
> Modified: james/server/trunk/src/java/org/apache/james/core/MailImpl.java
> URL: 
> http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/core/MailImpl.java?rev=414873&r1=414872&r2=414873&view=diff
> ==============================================================================
> --- james/server/trunk/src/java/org/apache/james/core/MailImpl.java (original)
> +++ james/server/trunk/src/java/org/apache/james/core/MailImpl.java Fri Jun 
> 16 11:05:43 2006
> @@ -610,6 +610,7 @@
>          ByteArrayOutputStream b = new ByteArrayOutputStream();
>          ObjectOutputStream out = new ObjectOutputStream(b);
>          out.writeObject(o);
> +        out.flush();
>          out.close();
>          ByteArrayInputStream bi=new ByteArrayInputStream(b.toByteArray());
>          ObjectInputStream in = new ObjectInputStream(bi);
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> !EXCUBATOR:1,4492f31243372148346571!

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to