Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6520
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail |
|---|---|
| Date | Sun, 24 Jul 2011 20:35:16 -0400 |
| From | Arne Vajhøj <arne@vajhoej.dk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Getter/Setter - Serialization |
| References | <c591a234-aa23-4894-a693-e8b09756c934@15g2000vbw.googlegroups.com> <j0hdqs$mkh$1@dont-email.me> <1aaf12f8-e9da-4767-8d40-36a585e13cfe@m18g2000vbl.googlegroups.com> |
| In-Reply-To | <1aaf12f8-e9da-4767-8d40-36a585e13cfe@m18g2000vbl.googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Lines | 33 |
| Message-ID | <4e2cba49$0$304$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
| NNTP-Posting-Host | 72.192.23.157 |
| X-Trace | news.sunsite.dk DXC=ONi\am]=`TN8R0D<PWbV?JYSB=nbEKnkKTUCR5gQKU5IJPe3\kP5EUAKBm9cfh9BSDM2;kT<[:>[A>fLY05<E>eDf_Q`M54McbB |
| X-Complaints-To | staff@sunsite.dk |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6520 |
Show key headers only | View raw
On 7/24/2011 12:33 PM, Thomas Lehmann wrote: > 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. But his arguments against serialization applies to xstream as well, so ... Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Getter/Setter - Serialization Thomas Lehmann <thomas.lehmann.private@googlemail.com> - 2011-07-24 08:07 -0700
Re: Getter/Setter - Serialization markspace <-@.> - 2011-07-24 08:30 -0700
Re: Getter/Setter - Serialization Thomas Lehmann <thomas.lehmann.private@googlemail.com> - 2011-07-24 09:33 -0700
Re: Getter/Setter - Serialization markspace <-@.> - 2011-07-24 10:26 -0700
Re: Getter/Setter - Serialization Arne Vajhøj <arne@vajhoej.dk> - 2011-07-24 20:35 -0400
Re: Getter/Setter - Serialization lewbloch <lewbloch@gmail.com> - 2011-07-24 11:51 -0700
Re: Getter/Setter - Serialization Roedy Green <see_website@mindprod.com.invalid> - 2011-07-25 00:47 -0700
csiph-web