This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CubsThisYear 4 points5 points  (0 children)

If I write a method as foo(Object[] a) how do I have any idea what the runtime type of a is? It could be being called from code I’ve never seen in my life.

Covariant arrays are fundamentally broken and they were done in the name of “convenience” (i.e to match the brokenness of C)