Humor &Programming Languages 16 Jun 2007 10:34 am

One More Reason Generics in Java Suck

So, I decide to abstain from generics because they suck. Then I forget the previous pain and I decide I should try to use them again, but I keep running into things about generics that stink. Then I decide to abstain again. Time passes, then I think I should use them again, and without fail, I run into something else stupid about generics.

This particular case makes sense when you remember erasure of generic types at compile time, but still this seems like a huge cognitive flaw in using generics. If I can override non-generic methods, then I should be able to override generic methods. Duh!

Subscribe to the comments through RSS Feed

Leave a Reply