I'm trying to invoke a list of
instances on a
but it's complaining about the types.
I'm not pretty sure why it's not working.
I have the task classes which are defined as follows:
public class WorkerTask<G extends Game> extends RecursiveTask<Double>
of these tasks and then I would like to let them loose in a
. I know I can invoke them one by one using
but that's not what I want in the end.
tell me that it has to be a list of objects that implement
. I followed the type hierarchy upwards up to
. There I can see a class defined
static final class AdaptedCallable<T> extends ForkJoinTask<T>
so I think it should work.
What am I doing wrong here?