[
https://issues.apache.org/jira/browse/GROOVY-11899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071125#comment-18071125
]
Paul King commented on GROOVY-11899:
------------------------------------
The proposed PR adopts option 2 above. With a very simple codebase it seemed to
be writing the correct information in the bytecode for both instance and static
method calls. It is currently a modified Groovy 6 repo - you'd need to unpack
and point your build to a local file repo for Groovy:
https://github.com/apache/groovy/actions/runs/23969007753/artifacts/6267963700
Do I need to create the same thing for Groovy 5.
> Static methods in Traits do not compile in Java/Groovy joint compiliation
> -------------------------------------------------------------------------
>
> Key: GROOVY-11899
> URL: https://issues.apache.org/jira/browse/GROOVY-11899
> Project: Groovy
> Issue Type: Bug
> Components: Stub generator / Joint compiler
> Affects Versions: 5.0.5
> Reporter: Mattias Reichel
> Assignee: Paul King
> Priority: Major
>
> Compilation fails in Java/Groovy joint compilation builds where a Java class
> references a Trait that has static methods.
> Reproducer:
> {code:java}
> git clone https://github.com/matrei/groovy-5-trait-joint-comp-issue.git
> ./gradlew build{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)