Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.0, 1.8.8
-
None
-
None
Description
It seems the clone() method added by AST transformation due to @AutoClone annotation doesn't correctly use info inserted in 'excludes' annotation param with CLONE and SERIALIZATION AutoCloneStyle (http://groovy.codehaus.org/gapi/groovy/transform/AutoClone.html)
It correctly works only for COPY_CONSTRUCTOR AutoCloneStyle
@AutoClone(style=COPY_CONSTRUCTOR, excludes = 'last')
class Person_C {
String first, last
}
Please refer to my testcase published at http://groovyconsole.appspot.com/script/830001