Nested generics don't compile in 1.7.0_15, but do in 1.6.0_27.

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Mar 12 09:55:17 PDT 2013


On 12/03/13 16:48, Zhong Yu wrote:
> Apparently the problem lies at|FooString|=FooString. The two types
> probably should have been distinctive, since FooString is kind of
> generic, even though it carries no type parameters on itself.
Right - that's the core of the issue - once you use a raw types, all 
supertypes, regardless of them being generic or not, will be a bit 
special, in that their supertypes will be erased too.

Maurizio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130312/9a9f2d9d/attachment.html 


More information about the compiler-dev mailing list