Reputation: 17193
static void stuff(Thing thing, Iterable<T extends Something> stuff){
...
}
This doesn't compile, Eclipse puts a red line under extends
. However if I change T
to ?
, it works. Why?
Upvotes: 0
Views: 66
Reputation: 25950
Try :
static <T extends Something> void stuff(Thing thing, Iterable<T> stuff){
//...
}
Upvotes: 4