Re: Converting Sets



On 2/2/2012 8:34 PM, Daniel Pitts wrote:
On 2/2/12 4:29 PM, Roedy Green wrote:
Have we gone down that road too far now that Java can never be fixed
with run-time generics info without starting over with some completely
different notation? Then serialisation could work, containers could be
allocated with the precise array type. You would not have so much
under-the-hood casting.
The point of generics is to add compile-time type safety. Runtime
"generics" is a contradiction to that.

That was the way it was decided to do it for Java.

But it did have to be that way.

And runtime check can certainly add to type safety!

Arne

.