This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am not Sure but if your are building a manual "Date" class which implements Serializable and has Constructor of your choice then please do change its name from Date to MyDate or anything you like..and make the respective changes every where in your code.
I think it would be because if you use "java.util.*" as an import statement it may take the inbuilt Date class.
Do the change and post what happens after that..
Ricardo Soares wrote:I have another class that does the serialization to and from xml
when i deserialize the xml it restores all the elements of the events arraylist but each event has its date ( day month and year ) with values 0
is there anything i need to do in order to make my serialization save the variables from the date class ?
Well, yes there is. But since we don't know how your deserializing works, it's hard to say much about exactly what you would have to do. I can say that just declaring classes as Serializable doesn't have any effect on how you get your data out of an XML document -- at least, probably not. How about showing us how you deserialize from XML?