Can not replicate Java 1.4 pattern using Java 5 generics
I am trying to migrate some 1.4 code to Java 5. The code below captures the essence of what I am trying to do. Trouble is I get the following error
Name clash : The method readAll(List<XyzData>) of type Generics has the same erasure as readAll(List<Data>) of type Generics.DAO but does not override it
I sort of understand why it doesn't compile however I am unsure how to fix it, or even if I can use generics in this instance and if I can what is the syntax?
publicabstractclass DAO
{
publicabstractvoid readAll(List<Data> data);
}
publicclass XyxDAO
extends DAO
{
publicvoid readAll(List<XyzData> xyzData)
{
...
}
}
I certainly need to do some more reading about this generics stuff but any help now would be much appreciated.

