|
|
|
|
|
by jdmichal
3569 days ago
|
|
Type-erasure was a crime against the Java community, perpetrated to make the JVM writers' job easier. Backwards compatibility was a poor excuse, as I can think of at least two ways to mitigate that without type-erasure: * Introduce new generic types in a new namespace. .NET did this with `System.Collections` and `System.Collections.Generic`. * Default unspecified generics to `Object`, including usage of generic types in bytecode tagged with pre-1.5 versions. |
|