java - Troubleshooting type parameter t hidden type T warning
I am getting a warning in eclipse (the most recent version) for the following code.
public interface A<T> extends B<T> {
public T getObject();
}
The warning appears at 'T' in 'A' and reads: "The type parameter T is hiding the type T".
The weird part is that the following code generates no errors or warnings.
public interface A extends B<T> {
public T getObject();
}
But now I can't extend A while telling it what type T is.
I am completely confused. Anyone know why this is happening? Thank You.
This question and all comments follow the
"Attribution Required."
Similar questions
- c# - Cast generic type "as t" while casting T type
- c# - How to initialize the common parameter type T?
- java - The generic class class is missing the type parameter < T > where t is a type variable
- c++ - If t is a template type parameter, is base:: operator t allowed?
- java - Why does the type parameter of binding parameter T <: compatible [t] fail for t = int?
- More similar questions >>
All Answers
Leave a Reply