I've got the following classes set up:
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 the ResourceImpl
. I'm told that ProcessImpl
is not a valid substitute for the bounded parameter <S extends Process<T,S>>
of the type Resource<T,S>
.
I've tried various ways of getting around this and keep hitting a wall.
Does anyone have any ideas?