commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: svn commit: r980942 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/
Date Fri, 30 Jul 2010 21:54:10 GMT
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


Mime
View raw message