serialVersionUID update

Larry O'Leary loleary at redhat.com
Thu Apr 11 15:09:05 UTC 2013


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. 
-- 
Larry O'Leary
https://plus.google.com/u/0/112645929986009801513



More information about the rhq-devel mailing list