3 ms·
Valhalla won't solve all issues with erased generics in Java. In C# "static T foo;" is a valid declaration that creates a separate "foo" for each specialized cl
by orthoxerox 7y ago
Valhalla won't solve all issues with erased generics in Java. In C# "static T foo;" is a valid declaration that creates a separate "foo" for each specialized class.
- pjmlp 7y agoOnly if T is a value type, reference types share implementations. The final semantics for specialized value types are not yet set in stone, so what Java might end up supporting is still a guessing game.