This discussion is archived
3 Replies Latest reply: May 12, 2009 2:18 PM by 807588 RSS

Problem overriding generics

807588 Newbie
Currently Being Moderated
I have this generic class :
public class Attribute<Type> {
    ...
    public void modify(Type parModifier) {
    ...
And I'm trying to override its modify method in this specialization class :
public class IntegerAttribute extends Attribute<Integer> {
   ...
   public void modify(??? parModifier) {
   ...
Problem : I have no idea what I could type instead of ??? to effectively override the base's class modify().
Using Attribute<Type> or Type doesn't compile of course.