You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Christopher Smith (Jira)" <ji...@apache.org> on 2021/04/26 22:53:00 UTC

[jira] [Created] (GROOVY-10060) Support static interface methods

Christopher Smith created GROOVY-10060:
------------------------------------------

             Summary: Support static interface methods
                 Key: GROOVY-10060
                 URL: https://issues.apache.org/jira/browse/GROOVY-10060
             Project: Groovy
          Issue Type: Improvement
          Components: Compiler
    Affects Versions: 3.0.8
            Reporter: Christopher Smith


Apologies if this is a dupe, but I went back as far as 6000, and GROOVY-8299 is the only relevant ticket I saw.

Since Java 8, interfaces can carry static methods like classes. Groovy still (as of 3.0.8) does not support adding static methods to interfaces.

{code}
The method 'java.lang.String dynamoTableNameForType(java.lang.String)' from interface 'com.example.HasDynamo' must not be static. Only fields may be static in an interface.
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)