Oh Java!

java generics bug

Thankfully, this will finally be fixed in Java 8.