You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Norman Maurer <nm...@byteaction.de> on 2006/06/16 20:08:20 UTC

Re: svn commit: r414873 - /james/server/trunk/src/java/org/apache/james/core/MailImpl.java

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!

Re: svn commit: r414873 - /james/server/trunk/src/java/org/apache/james/core/MailImpl.java

Posted by Stefano Bagnara <ap...@bago.org>.
Norman Maurer wrote:
> Im not sure this is not made automaticly by the StreamImplementation..
> Anyway to call the flush is the "correct way". Should we backport it ?

+1: Imho small bugfixes have to be backported until we enter RC cycles.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org