Description
It basically means that equals() and hashCode() generated using @EqualsAsHashCode will throw MissingMethodException if you define only is style getters for a glass. I expected the following to pass but it doesn't:
import groovy.transform.EqualsAndHashCode @EqualsAndHashCode class A { boolean a boolean isA() { a } } def a1 = new A(a: true) def a2 = new A(a: true) assert a1.a assert a1.hashCode() assert a1 == a2
Attachments
Issue Links
- is related to
-
GROOVY-5752 DelegateASTTransformation#addGetterIfNeeded doesn't take boolean isX accessors into account
- Closed
- links to