commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: svn commit: r1080231 - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/exception/MathRuntimeException.java test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java
Date Thu, 10 Mar 2011 14:49:16 GMT
On Thu, Mar 10, 2011 at 02:19:23PM +0000, sebb wrote:
> On 10 March 2011 14:05,  <erans@apache.org> wrote:
> > Author: erans
> > Date: Thu Mar 10 14:05:32 2011
> > New Revision: 1080231
> >
> > URL: http://svn.apache.org/viewvc?rev=1080231&view=rev
> > Log:
> > MATH-542
> > Added custom "writeObject" and "readObject" so that serialization can
> > proceed even if non-"Serializable" objects are stored (in messages
> > arguments or context values).
> >
> > Modified:
> >    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathRuntimeException.java
> >    commons/proper/math/trunk/src/test/java/org/apache/commons/math/exception/MathRuntimeExceptionTest.java
> 
> I thought it was recommended to call defaultWriteObject() and
> defaultReadObject() ?

The purpose of custom implementations was because the default mechanism
won't work for non-Serializable objects.


Gilles

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


Mime
View raw message