You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/07/22 04:22:02 UTC

[jira] [Closed] (GROOVY-9162) AutoClone AST transform replaces custom clone method

     [ https://issues.apache.org/jira/browse/GROOVY-9162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-9162.
-----------------------------

> AutoClone AST transform replaces custom clone method
> ----------------------------------------------------
>
>                 Key: GROOVY-9162
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9162
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 3.0.0-beta-1, 2.5.7
>            Reporter: Andres Almiray
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 2.5.8, 3.0.0-beta-2
>
>
> A class defined as
> {code:java}
> @groovy.transform.AutoClone
> class ClassUnderTest {
>     Object clone() throws java.lang.CloneNotSupportedException { null }
> }
> {code}
> Will override the definition of {{clone}} every single time.
> In contrast with {{@Canonical}} for example where explicit {{toString()}} is not overridden.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)