[
https://issues.apache.org/jira/browse/GROOVY-12604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18140689#comment-18140689
]
ASF GitHub Bot commented on GROOVY-12604:
-----------------------------------------
testlens-app[bot] commented on PR #3131:
URL: https://github.com/apache/groovy/pull/3131#issuecomment-6720394000
## 🚨 All tests passed but jobs failed 🚨
### Failed Jobs without Test Failures
❌ [Build and test / lts \(17,
ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42471409060/job/128702786970?pr=3131)
❌ [Build and test / lts \(25,
ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42471409060/job/128702786756?pr=3131)
❌ [Check licenses / test
\(ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42471409030/job/128702786646?pr=3131)
❌ [CodeQL / Analyze \(java,
21\)](https://github.com/apache/groovy/actions/runs/42471409027/job/128702786746?pr=3131)
❌ [Lint gate /
lint](https://github.com/apache/groovy/actions/runs/42471408995/job/128702786560?pr=3131)
❌ [Performance check /
test](https://github.com/apache/groovy/actions/runs/42471409028/job/128702786742?pr=3131)
❌ [jmh / test \(bench,
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42471409074/job/128702787389?pr=3131)
❌ [jmh / test \(core-ag,
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42471409074/job/128702787371?pr=3131)
❌ [jmh-classic / test \(core-ag,
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42471408976/job/128702786843?pr=3131)
❌ [jmh-classic / test \(core-hz,
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42471408976/job/128702786698?pr=3131)
❌ [jmh-classic / test \(grails-ad,
\\\\.perf\\\\.grails\\\\.[A-D]\)](https://github.com/apache/groovy/actions/runs/42471408976/job/128702786930?pr=3131)
🏷️ Commit: b36c1904a3f450169869a3119c6b08730939bb88
▶️ Tests: 281 executed
🟡 Checks: 13/24 completed
### Rerun Controls
Click the checkbox to trigger a rerun:
🔲 **Rerun jobs**
---
_Learn more about TestLens at
[testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
> A promoted trait static that calls a @Virtual static fails with
> MissingMethodException when called through the trait
> --------------------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-12604
> URL: https://issues.apache.org/jira/browse/GROOVY-12604
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 6.0.0
> Reporter: Scott Murphy Heiberg
> Priority: Major
>
> {code:groovy}
> import groovy.transform.Virtual
> trait T {
> @Virtual static String setting() { 'default' }
> static String describe() { 'setting=' + setting() }
> }
> class C implements T {}
> assert C.describe() == 'setting=default'
> assert T.describe() == 'setting=default'
> {code}
> Actual: {{T.describe()}} throws {{MissingMethodException: No signature of
> static method: setting for class: T is applicable for argument types: ()
> values: []}}. This happens in dynamic Groovy, with @TypeChecked and with
> @CompileStatic. The trait documentation's own @Virtual example fails the same
> way when called as {{Configurable.describe()}}.
> Expected: called through the trait itself there is no implementing class, so
> the trait's own (default) implementation of the @Virtual static is used, and
> the call returns {{setting=default}}.
> Public trait statics are promoted to the trait interface, and the forwarder
> passes the trait interface as the static self. The @Virtual call site
> dispatches dynamically on that self, but @Virtual statics are deliberately
> not promoted to the interface, so the call finds nothing.
> Seen in 6.0.0 (the first version with @Virtual).
> PR: https://github.com/apache/groovy/pull/3131
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)