Unfortunately, Java Generics are a compile-time function, handled by javac. We bypass javac by generating the byte code directly.
When javac sees List<String>, it checks all the uses against that declaration, then type erasure happens as the class file is written, and it becomes a plain List.
http://en.wikipedia.org/wiki/Generics_in_JavaI can go into more detail if you like.
Thanks,
Rob
On Aug 21, 2012, at 8:07 AM, "joseaio" <
[hidden email]> wrote:
> I think that optional Type System (as Strongtalk) must be interesting for Redline (and easy to implement thank you to Java Generics)
>
> What do yo think?