Grokbase Groups Cayenne dev June 2012
FAQ
Don't take this as an expert opinion, but since subclasses contain all
member fields of the superclass, I'd expect that a subclass needs to
have a changed SerialVersionUUID if the superclass changes.

Testing this aspect might be in order.

-----Original Message-----
From: Mike Kienenberger
Sent: Thursday, June 14, 2012 6:07 PM
To: dev@cayenne.apache.org
Subject: Re: Serialization warnings

But should the subclass serialVersionUID change just because the
superclass changed? That's what you are proposing. I suspect not,
but again, I'm not an expert in the field.

serialVersionUID = 1L; might be a better choice and might also encourage the developer to update it when he adds things.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 12 of 27 | next ›
Discussion Overview
groupdev @
categoriescayenne
postedJun 14, '12 at 2:07p
activeJul 18, '13 at 1:50p
posts27
users5
websitecayenne.apache.org

People

Translate

site design / logo © 2022 Grokbase