Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.3
-
None
-
Groovy Version: 2.5.3 JVM: 11.0.2 Vendor: Oracle Corporation OS: Mac OS X
Description
import groovy.transform.EqualsAndHashCode @EqualsAndHashCode(includes = ["name"]) class Test { private final String name Test(String name) { this.name = name } String getName() { return name } }
Groovy 2.5.3 complains:
/Users/zhb/Projects/tmp/Main.groovy: 3: Error during @EqualsAndHashCode processing: 'includes' property 'name' does not exist. @ line 3, column 1. @EqualsAndHashCode(includes = ["name"]) ^ 1 error
But Groovy 2.4.16 works fine.