posted 17 years ago
Uh, neither does it on mine. But I don't understand why it wouldn't "make sense"? Why allow:
static <T extends MyObject> void myMethod(T param) {}
but not:
static <T super MyObject> void myMethod(T param) {}
One sets a lower bound on T, the other sets an upper. What is the reasoning behind allowing one but not the other when they can both be used w�th the wildcard? Isn't "T" working as a labelled wildcard here?