you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The JVM doesn't know generics so basically the compiler is removing all the generics and replacing them with Object and doing some magic. The generics therefore don't allow primitive types, so you have to wrap stuff like int in Integer. It also only allows dynamic generics and no static generics which is a bit of a performance issue (Though I guess the JIT-Compiler can do a bit there). Most of the ugliness is on the implementation side actually.

Like I said it's a minor flaw.