Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Java generics and type erasure Date: Fri, 27 May 2011 10:18:04 -0400 Organization: albasani.net Lines: 23 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net t9aWzSZO1mzPqyPg3P7GD940OnWITjGMMyzZTb1QhhSiilex7r9cHaWGXTgLiZRHRwqJwlhHoD6xW0UnPIHv+kbS6zWTq4trs5BDT0XFpkWInUaamNlP62yErD1WmqHT NNTP-Posting-Date: Fri, 27 May 2011 14:17:18 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="d3qlRnP9W67cagTupEz7lp7rbLF19n8L1hXWTrPs9iw7cPnVPcvc8vcksmGZ7pwNTTIOe7xteyNMAbEDW/9dXqJB6UIkz0v+ICjJHx92mxRm+U9Ii8IFREZP88eXueLn"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: <4ddf5baf$0$67779$c30e37c6@exi-reader.telstra.net> Cancel-Lock: sha1:hyMAdzyqthSu7CvfzZZrxv8fCrM= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4649 Esmond Pitt wrote: > Lew wrote: >> The meaning of the assertion you cite was that the generics information >> that is present in the bytecode is ignored at runtime > > No. There is no generic information in the bytecode to ignore. It has been > erased by the compiler. The only generic information in the .class file is in > the method signatures, and they are there for the compiler, not for the JVM. 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? SO it IS a runtime phenomenon that the generic information IN THE CLASS FILE is ignored. Better? -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg