Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Newsgroups: comp.lang.java.programmer From: Andreas Leitgeb Subject: Re: generics puzzle References: <9g2f24Fi0vU1@mid.individual.net> Reply-To: avl@logic.at User-Agent: slrn/pre0.9.9-111 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Date: 17 Oct 2011 15:36:10 GMT Lines: 15 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1318865770 tunews.univie.ac.at 10322 128.130.175.3 X-Complaints-To: abuse@tuwien.ac.at Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8919 markspace <-@> wrote: > On 10/17/2011 5:14 AM, Steven Simpson wrote: >> On 17/10/11 11:41, blmblm@myrealbox.com wrote: >>> One fix is to just introduce a method setFromModified() in GThing, >>> but that doesn't appeal to me. >> Instead of adding it to GThing, create a static method: >> private static void setModified(GThing t) { >> t.set(t.modified()); >> } > I don't like the T here. While it compiles, this T is a different T > than the other T. If you want to mix GThings and GThings, then you had better go by GThing all the way.