Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.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: Java generics and type erasure References: <9d4c2b16-beb5-40b1-87a2-f03e971efeed@k17g2000vbn.googlegroups.com> <4dde10b0$0$67777$c30e37c6@exi-reader.telstra.net> <4ddf0617$0$67777$c30e37c6@exi-reader.telstra.net> <4ddf14c8$0$67785$c30e37c6@exi-reader.telstra.net> <4ddf5baf$0$67779$c30e37c6@exi-reader.telstra.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: 27 May 2011 17:03:38 GMT Lines: 12 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1306515818 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:4653 Lew wrote: > OK, so I shouldn't have said "bytecode", I should've said "class file", two > terms that I treat interchangeably. It's in the freaking CLASS FILE, right? > Isn't that the thing that gets used at runtime? Doesn't the generic > information in THE CLASS FILE get ignored at runtime just like I said? It's not so much a question of whether the generic information of a class file (like java/util/ArrayList.class) is used or not, but rather whether the generic information of a particular *use* of that class was in the *using* code's class-file, which I think isn't: ... = new ArrayList>>();