Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Won't Fix
-
1.5.4
-
None
-
None
Description
String x = "123".length()
works while it should throw a ClassCastException. I don't see why there should be default behavior in Groovy that converts objects to make an assignment work. If the object type is wrong the assignment shall - by default - always fail with ClassCastException.