[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    Re: svn commit: r980942 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception
From:       Luc Maisonobe <Luc.Maisonobe () free ! fr>
Date:       2010-07-30 21:54:10
Message-ID: 4C534A02.7050103 () free ! fr
[Download RAW message or body]

Le 30/07/2010 23:49, Gilles Sadowski a écrit :
> > Author: luc
> > Date: Fri Jul 30 20:28:06 2010
> > New Revision: 980942
> > 
> > URL: http://svn.apache.org/viewvc?rev=980942&view=rev
> > Log:
> > added missing SerialVersionId
> > 
> > Modified:
> > commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/DimensionMismatchException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathIllegalArgumentException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathIllegalNumberException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NoDataException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NonMonotonousSequenceException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NotPositiveException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NotStrictlyPositiveException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NumberIsTooLargeException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/NumberIsTooSmallException.java
> >  commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/OutOfRangeException.java
> > 
> 
> For what purpose would these classes need a "SerialVersionId"?

Because java.lang.Exception implements Serializable, so all java
exception need one. It is rather cumbersome, I agree, but we cannot do
anything about that and various tools complain when this field is missing.

Luc

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


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic