You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/12/03 20:29:00 UTC

[jira] [Commented] (GROOVY-8021) Super in traits causes MissingMethodException

    [ https://issues.apache.org/jira/browse/GROOVY-8021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453194#comment-17453194 ] 

Eric Milles commented on GROOVY-8021:
-------------------------------------

See also GROOVY-7135

> Super in traits causes MissingMethodException
> ---------------------------------------------
>
>                 Key: GROOVY-8021
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8021
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation
>    Affects Versions: 2.4.7
>            Reporter: Daniil Ovchinnikov
>            Priority: Major
>              Labels: trait, traits
>
> {code}
> @CompileStatic
> trait SimpleTrait {
>     void foo() {
>         super.foo()
>     }
> }
> @CompileStatic
> class Foo implements SimpleTrait {}
> new Foo().foo() // MissingMethodException
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)