commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@scalaris.com>
Subject Re: [chain2] serialVersionUID
Date Thu, 01 Jan 1970 00:00:00 GMT
sebb wrote:

> On 24 July 2012 09:11, Jörg Schaible <Joerg.Schaible@scalaris.com> wrote:
>> Hi Elijah,
>>
>> Elijah Zupancic wrote:
>>
>>> Thanks Jörg!
>>>
>>> It sounds like we will need to change them all in chain because we
>>> have changed the package name.
>>
>> Well, since they are all different objects now, the Java runtime will not
>> try to match them anyway, so it is for this special case not really
>> required.
> 
> +1
> 
> 
>> However, if you consider a change, I'd like to propose to use everywhere
>> a constant that reflects the day of change:
>>
>> servialVersionUID = 20120724L; // format YYYYMMDD
>>
>> It's easier then to keep track of changes.
> 
> +0
> 
> Ideally the svuid is only changed when necessary.
> I don't think the id should be updated just because a new method was
> added, or code was updated.
> 
> The danger with using the date is that maintainers may update the id
> whenever the source is updated.

I did not say that.

- Jörg


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


Mime
View raw message