This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In section 2.2; the paper justifies the need for super-bounded wildcards.
It gives one usecase for super-bounds which is in Comparator objects.
I'm not convinced by this argument. The inheritance tree is only
one level. If it were 4-5 levels deep; then it might make more sense. In this case; using an implementation of Comparator<Object> is defeating the purpose of generics which is to implement type safe code. Instead I resort to writing code like this:
What do you think? [ April 25, 2008: Message edited by: Pho Tek ]