james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer ...@byteaction.de>
Subject Re: svn commit: r414873 - /james/server/trunk/src/java/org/apache/james/core/MailImpl.java
Date Fri, 16 Jun 2006 18:08:20 GMT
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 norman@apache.org:
> 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: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 
> !EXCUBATOR:1,4492f31243372148346571!

Mime
View raw message