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

ASF GitHub Bot commented on GROOVY-10060:
-----------------------------------------

eric-milles commented on PR #1997:
URL: https://github.com/apache/groovy/pull/1997#issuecomment-1826862454

   Now `private` methods are supported in interfaces.  Are `static` also 
supported?  It was less clear from the changes if this is the case.  Also, are 
there tests for `protected` and `@PackageScope` method errors?  I can't quite 
find them among the tests.  Is there a statement about property support 

> Support static & private interface methods
> ------------------------------------------
>
>                 Key: GROOVY-10060
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10060
>             Project: Groovy
>          Issue Type: Sub-task
>          Components: Compiler
>            Reporter: Christopher Smith
>            Assignee: Paul King
>            Priority: Major
>
> 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.20.10#820010)

Reply via email to