Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
-
Groovy 2.0.1, Java 6 VM (no indication of correction for 2.0.2 found)
Description
For classes implementing Comparable (e. g. String) calls to 'compareTo()' with single either directly or through operator like '<' are not detected as incorrect if the argument is on the wrong type (e. g. 'ab' < 1 is accepted).
Note: Attached test source is modification of standard test delivered with Groovy 2.0.1