From: Gansito F. <gan...@gm...> - 2007-07-13 02:06:08
|
Hi all, I noticed that most classes in TripleA don't have a serialVersionUID, I was wondering why not? Wouldn't it help to ensure save game compatibility if we did have UIDs? Just a thought, Gansito |
From: Sean B. <sbr...@ya...> - 2007-07-14 15:23:58
|
Hey, Adding a serialversionuuid wouldn't help much in making different versions compatable. Dagan added serialversionuuid fields to a bunch of classes because files compiled with eclipse and files compiled with javac would end up with different serialversion numbers, even though they were the same class. By adding the fields, a developer could load a saved game with code compiled in eclipse as he could with code compiled by javac. The TripleA policy that different versions are not compatable is because it is too much work. If we maintain version compatability we would have to be careful in what changes in the code, write code to deal with older and current versions, and test for compatability. Rather than do that, we just force people to upgrade. Sean --- Gansito Frito <gan...@gm...> wrote: > Hi all, > > I noticed that most classes in TripleA don't have a > serialVersionUID, I > was wondering why not? Wouldn't it help to ensure > save game > compatibility if we did have UIDs? > > Just a thought, > Gansito > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Triplea-developers mailing list > Tri...@li... > https://lists.sourceforge.net/lists/listinfo/triplea-developers > ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL |