Huston, we have a problem !

Florian Weimer fweimer at bfk.de
Fri Feb 18 09:10:20 PST 2011


* Maurizio Cimadamore:

>> But are these concepts actually different?  If they are, there has to
>> be case where adding<>  to a raw type results in different results at
>> run-time.

> Well, because of type-erasure you won't be able to tell the difference
> between List<String> and List<Integer> either - so are they the same
> thing?

Clearly, those a different at compile time.  What I'm looking for is a
case where both Foo and Foo<> result in legal expressions at compile
time and produce different byte code.

If there is not an example, then <> does not provide any information
to the compiler.  Does it tell something to the reader?  I really
doubt that.

-- 
Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99



More information about the coin-dev mailing list