[
https://issues.apache.org/jira/browse/GROOVY-10060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577050#comment-17577050
]
Eric Milles edited comment on GROOVY-10060 at 8/9/22 2:10 PM:
--------------------------------------------------------------
I have requested for native interfaces, which includes static, private and
default methods be part of Groovy 5. They are emulated with traits in Groovy 4.
We are working out bytecode target requirements for this.
was (Author: emilles):
I have requested for native interfaces, which includes static and private
methods be part of Groovy 5. They are emulated with traits in Groovy 4. We are
working out bytecode target requirements for this.
> 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
> 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)