Results 1 to 3 of 3
- 01-05-2013, 11:43 PM #1
Senior Member
- Join Date
- Feb 2012
- Posts
- 219
- Rep Power
- 2
Changing serialized object's fields
Hello
I have managed to code myself into a little bit of a problem. I developed a mod for a game, a simple mod, that saves data in the form of a serialized object. It has two fields, both ints. I however would like to convert them into doubles. The problem is that the data is saved to disk and I don't want existing user's data to be destroyed. Is there some way I can have it converted into doubles that won't break backwards compatibility?
Here is the page in question.
Thank you for any help.
- 01-06-2013, 02:31 AM #2
Member
- Join Date
- Dec 2012
- Posts
- 74
- Rep Power
- 0
Re: Changing serialized object's fields
Maybe that's a good reason not to use serialization. Maybe XML would be better. I know that you've already used serialization, but I wouldn't mind having a discussion about using XML instead and staying away from serialization.
- 01-06-2013, 03:17 AM #3
Senior Member
- Join Date
- Feb 2012
- Posts
- 219
- Rep Power
- 2
Similar Threads
-
writing and Reading a serialized java object
By KunCode in forum New To JavaReplies: 2Last Post: 05-20-2012, 06:51 PM -
Size of serialized object with null values
By jamesd128 in forum New To JavaReplies: 1Last Post: 10-22-2010, 06:43 PM -
Changing binding when changing the underlying model object
By ChrisNY in forum NetBeansReplies: 0Last Post: 08-14-2010, 10:09 AM -
Accessing non-static fields from another class, before object creation
By mlad in forum New To JavaReplies: 3Last Post: 03-24-2010, 12:24 AM -
accessing fields from another class without creating an object
By johnnyjohn2009 in forum New To JavaReplies: 2Last Post: 03-08-2010, 10:29 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks