While working on generics
and Callable
i am getting following error:
The type of the expression must be an array type but it resolved to capture#1-of ? extends Object[]
public class Test {
public Object m1(Callable<? extends Object[]> abc) throws Exception {
return abc.call()[0];//Getting error here
}
}
I am really not sure what is producing this error.
It would be great if some one share knowledge on this error as i am not able to understand it.
It is not duplicate of above mentioned question , Please check