Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.utanet.at!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: Immutable Datastructures with good Sharing References: 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: 07 Nov 2011 10:24:17 GMT Lines: 20 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1320661457 tunews.univie.ac.at 60386 128.130.175.3 X-Complaints-To: abuse@tuwien.ac.at Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9731 Giovanni Azua wrote: > On 11/7/11 12:32 AM, in article j975e4$t80$2@news.albasani.net, "Jan Burse" > wrote: >> Tom Anderson schrieb: >>> I see absolutely no improvement in the code here, only unhelpful >>> obfuscation. >> I guess it requires JDK 1.7 or so for the parameter >> type inference. Not sure, picked something up like >> that... > Nop, it doesn't need 1.7. I can confirm it works just fine with JDK 1.6.x Generic type inference has been done in two steps: - for static methods in 1.6 - for instance creation (i.e. "new ...") in 1.7 If you're stuck to 1.6 now, there might be some temptation to resort to tricks for gaining generic type inference even for the second, but be aware, that this is not exactly a "future investment" for the maintainability of your code.