serialVersionUID update

Thomas Segismont tsegismo at redhat.com
Thu Apr 11 15:10:51 UTC 2013


Le 11/04/2013 17:09, Larry O'Leary a écrit :
> On Thu, 2013-04-11 at 16:51 +0200, Thomas Segismont wrote:
>> Le 11/04/2013 16:49, Larry O'Leary a écrit :
>>> I am curious though. Wouldn't a change in serialVersionUID still
>>> constitute an API change if the affected object is serialized? From what
>>> I can see, this would be the case and a client using these common
>>> objects would no longer work.
>>>
>>> Am I missing something?
>>>
>>
>> It's a static field, so it's not serialized.
>>
>> See
>> http://docs.oracle.com/javase/7/docs/platform/serialization/spec/serial-arch.html#6250
>
> I understand that is isn't serialized itself. I am referring to object
> deserialization and the InvalidClassExceptions that will occur when the
> they don't match.
>

Yes that was obvious. Sorry for the confusion


More information about the rhq-devel mailing list