J
Joost Kraaijeveld
Hi,
I want to use the concrete type of an outer class as the concrete type
of an inner class but if I do so, I get a warning ( in Eclipse, for some
sample code see below):
"The type parameter ConcreteType is hiding the type ConcreteType"
In other places in my code, in the class outerClass, the member "object"
of the InnerClass is not recognized as being of type ConcreteType, but
*only* as of type AbstractBaseClass, so I assume that warning actaully
means something ;-).
Is what I want possible and if so, what should be the right syntax?
Sample code:
public class OuterClass < ConcreteType extends AbstractBaseClass > {
// Next line gives the warning
class InnerClass < ConcreteType extends AbstractBaseClass > {
ConcreteType object;
}
}
TIA
Joost
I want to use the concrete type of an outer class as the concrete type
of an inner class but if I do so, I get a warning ( in Eclipse, for some
sample code see below):
"The type parameter ConcreteType is hiding the type ConcreteType"
In other places in my code, in the class outerClass, the member "object"
of the InnerClass is not recognized as being of type ConcreteType, but
*only* as of type AbstractBaseClass, so I assume that warning actaully
means something ;-).
Is what I want possible and if so, what should be the right syntax?
Sample code:
public class OuterClass < ConcreteType extends AbstractBaseClass > {
// Next line gives the warning
class InnerClass < ConcreteType extends AbstractBaseClass > {
ConcreteType object;
}
}
TIA
Joost