2 ms·
There's no lack on clarify on why this happens. The point is that getting a ClassCastException with no explicit casts in the code is bad in and of itself. Java
by int_19h 10y ago
There's no lack on clarify on why this happens. The point is that getting a ClassCastException with no explicit casts in the code is bad in and of itself. Java (and other similar languages) is normally assumed to be sound wrt types in the absence of explicit casts.