A
Andoni
Hi,
Another question about serialization. I am looking to find something out
which I know I could write a test program to solve but...
I have a bean that holds a lot of data and has a few methods. These beans
are written to file and the files are read after hours and processing is
done on their contents. This means that I cannot change the bean until all
files are processed as this will invalidate any files that have not yet been
processed. As sometimes a file is put aside for processing another day, this
can cause a problem.
What I want to know is: If I create an inner class which actually holds the
data, then will it's contract change when I make changes to the outer class?
It's .class file should be the same so I suppose it should not but I'd like
some confirmation before I go re-writing everything to fit this.
Thanks in advance,
Andoni.
Another question about serialization. I am looking to find something out
which I know I could write a test program to solve but...
I have a bean that holds a lot of data and has a few methods. These beans
are written to file and the files are read after hours and processing is
done on their contents. This means that I cannot change the bean until all
files are processed as this will invalidate any files that have not yet been
processed. As sometimes a file is put aside for processing another day, this
can cause a problem.
What I want to know is: If I create an inner class which actually holds the
data, then will it's contract change when I make changes to the outer class?
It's .class file should be the same so I suppose it should not but I'd like
some confirmation before I go re-writing everything to fit this.
Thanks in advance,
Andoni.