Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Getter/Setter - Serialization Date: Sun, 24 Jul 2011 08:30:33 -0700 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 24 Jul 2011 15:30:36 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="23185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xK6S2/GinWwl56HR1KOqjtMMWZ/uBFuw=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:JJ3Oi6Tmwvg4jJVfSUr0siAm1I4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6505 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: