Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Consider the following:
class Type<T> { def <T> m(T t) { } }
In this case, I think it was an accident to add "<T>" to the method declaration.
The method type parameter "T" hides the enclosing class type parameter "T" without warning. I think you could get the same situation with "class T" in the same package. ecj states "The type parameter T is hiding the type T".