Another possible generics bug

Richard Warburton richard.warburton at gmail.com
Tue Dec 6 16:23:48 PST 2011


On 06/12/11 12:03, Maurizio Cimadamore wrote:
> I think there's one underlying issue here - which is a difference in 
> the way shadowing for type-varables is handled in javac w.r.t. to 
> Eclipse. When two names are available, a class name and a 
> type-variable name respectively, javac seems to prefer the class name 
> - this results in your first bug - as a type-variable cannot be 
> referenced from static context, and in this reflection glitch.
Slightly confused by this - do you mean 'javac seems to prefer the 
type-variable name'?

regards,

   Richard



More information about the compiler-dev mailing list