Another possible generics bug
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Dec 7 02:47:50 PST 2011
On 07/12/11 00:23, Richard Warburton wrote:
> 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'?
Yes - sorry for the confusion. Javac always give precedence to
type-variable names (except in very specific situation that have been
fixed as a result of the bug I mentioned).
Maurizio
>
> regards,
>
> Richard
More information about the compiler-dev
mailing list