Java Generics Code Generation [message #431086] |
Thu, 25 June 2009 21:43  |
Eclipse User |
|
|
|
Hello,
I'm trying to model a simple list using Java generics but am so far unable
to get eclipse to generate the code correctly. What I want to do is create
the following:
public class List<E> extends EObjectImpl implements EObject {
public void add(E x) {}
}
public class ConcreteList extends EObjectImpl implements MyList<Class> {
public void add(Class x) {
}
but I can only get it to create:
public class List<E> extends EObjectImpl implements EObject {
public void add(E x) {}
}
public class ConcreteList extends EObjectImpl implements MyList {
public void add(E x) {
}
How do I get the concreate list class to replace the generic <E> with a
concreate class in the ConcreteList?
-- Chris Graham
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03940 seconds