On 24 Jul., 17:30, markspace<-@.> wrote:
On 7/24/2011 8:07 AM, Thomas Lehmann wrote:
I might have problems with the serialization then obviously requiring
that the setter exists
Yeah, I think the setter/getter might be required for XML style
serialization, but not in the general case.
What are you doing that Eclipse says you need to mark a field as
transient? This doesn't make sense to me, because general serialization
will handle this just fine. I think I need some context here.
Here's a good article on serialization:
<http://java.sun.com/developer/technicalArticles/Programming/serializa...>
The warning message comes with PMD (plugin).
I'm intending to use XStream for XML serialization and so far I can
see
there is no need to provide getter and setter.
I know that article (URL) but reading also "Effective Java" you will
be warned
about the problem with using "Serializable".
Yes.
well, so ...