Why do generics in Java work with classes but not with primitive types?
For example, this works fine:
List foo = new ArrayList
The collections are defined to require a type which derives from java.lang.Object. The basetypes simply don't do that.
java.lang.Object