[ http://jira.andromda.org/browse/MISC-36?page=comments#action_12245 ] Peter Friese commented on MISC-36: ----------------------------------
I once introduced the SUIDD stuff, because I needed it for Spring remoting. Of course, ClassifierFacade is a little too generic for this Java feature - back then I was looking for the most generic place to put this logic, to be honest. Having the SUID on all serializable objects would satisfy the compiler, but one has to be careful: I am using a simplified algorithm to calculate the SUID and this algorithm does indeed return other results than the serial version generator of the JDK! In order to give users the chance to lock the SUID, I have introduced a tagged value (@andromda.serialVersionUID), so that you can define the SUID to be used. Having the SUID in all serializable classes would be a clear plus in my point of view. > add default serialVersionUID to all serializable classes > -------------------------------------------------------- > > Key: MISC-36 > URL: http://jira.andromda.org/browse/MISC-36 > Project: Miscellaneous > Type: Improvement > Reporter: Walter Itamar MourĂ£o > Assignee: Wouter Zoons > Priority: Trivial > > I've got a lot of warnings regarding the lack of the serialVersionUID > variable in serializable classes. If possible please add the default value in > all generated serializable classes, like this: > private static final long serialVersionUID = 1L; ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information