Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-beta-1, 2.5.7
-
None
Description
A class defined as
@groovy.transform.Sortable class ClassUnderTest { String name int age int compareTo(Object o) { 42 } int compareTo(ClassUnderTest o) { 42 } }
Will override the second definition of compareTo every single time.
In contrast with @Canonical for example where explicit toString() is not overridden.
Attachments
Issue Links
- relates to
-
GROOVY-9162 AutoClone AST transform replaces custom clone method
- Closed
-
GROOVY-9163 AutoExternalize AST transform replaces custom read/write method
- Closed