3 ms·
Erasure's not the end of the world, but it'd be nice to have access to the generic class without having to pass it in. Collection<Foo> values = ... Foo
by yarg 4y ago
Erasure's not the end of the world, but it'd be nice to have access to the generic class without having to pass it in.
Collection<Foo> values = ...
Foo[] array = values.toArray(Foo[]::new);
Not the worst, but not the best either.
There are many situations where the code I implemented could have been far cleaner with reified generics.