I have the following classes installed:
public abstract class Process<T,S> {
...
}
public abstract class Resource<T, S extends Process<T, S>> {
protected S processer;
...
}
public class ProcessImpl<EventType1, EventType2> {
...
}
public class ResourceImpl extends Resource<EventType1, ProcessImpl> {
processer = new ProcesserImpl();
...
}
Everything is fine until I get to ResourceImpl. I was told that ProcessImplit is not a valid replacement for a limited <S extends Process<T,S>>type parameter Resource<T,S>.
I tried various ways to get around this and keep hitting the wall.
Does anyone have any ideas?
Dan
source
share