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

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

testlens-app[bot] commented on PR #3114:
URL: https://github.com/apache/groovy/pull/3114#issuecomment-6720239278

   ## 🚨 Jobs failed without executing tests 🚨
   
   ### Failed Jobs without Test Failures
   
   ❌ [Check licenses / test 
\(ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42470465890/job/128699778087?pr=3114)
   ❌ [CodeQL / Analyze \(java, 
21\)](https://github.com/apache/groovy/actions/runs/42470465922/job/128699778315?pr=3114)
   ❌ [Generate SNAPSHOT artifacts / 
dist](https://github.com/apache/groovy/actions/runs/42470465919/job/128699778225?pr=3114)
   ❌ [Generate SNAPSHOT distributions / 
dist](https://github.com/apache/groovy/actions/runs/42470465899/job/128699778120?pr=3114)
   ❌ [Lint gate / 
lint](https://github.com/apache/groovy/actions/runs/42470465953/job/128699778323?pr=3114)
   ❌ [Performance check / 
test](https://github.com/apache/groovy/actions/runs/42470465876/job/128699778244?pr=3114)
   ❌ [jmh / test \(bench, 
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42470465869/job/128699778185?pr=3114)
   ❌ [jmh / test \(core-ag, 
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42470465869/job/128699778126?pr=3114)
   ❌ [jmh / test \(core-hz, 
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42470465869/job/128699778147?pr=3114)
   ❌ [jmh / test \(grails-ez, 
\\\\.perf\\\\.grails\\\\.[E-Z]\)](https://github.com/apache/groovy/actions/runs/42470465869/job/128699778253?pr=3114)
   ❌ [jmh-classic / 
summary](https://github.com/apache/groovy/actions/runs/42470465862/job/128699905136?pr=3114)
   ❌ [jmh-classic / test \(bench, 
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42470465862/job/128699778332?pr=3114)
   ❌ [jmh-classic / test \(core-ag, 
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42470465862/job/128699778175?pr=3114)
   ❌ [jmh-classic / test \(core-hz, 
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42470465862/job/128699778278?pr=3114)
   ❌ [jmh-classic / test \(grails-ad, 
\\\\.perf\\\\.grails\\\\.[A-D]\)](https://github.com/apache/groovy/actions/runs/42470465862/job/128699778373?pr=3114)
   ❌ [jmh-classic / test \(grails-ez, 
\\\\.perf\\\\.grails\\\\.[E-Z]\)](https://github.com/apache/groovy/actions/runs/42470465862/job/128699778336?pr=3114)
   
   🏷️ Commit: 2ae91fe2596b859895a388d5b826a6cae91cb80f
   ▶️ Tests:  0 executed
   🟡 Checks: 18/25 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/)._
   




> SC: super.name within a class nested in its superclass calls the wrong 
> accessor or throws MissingPropertyException
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-12589
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12589
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 4.0.33, 5.0.8, 6.0.0
>            Reporter: Scott Murphy Heiberg
>            Priority: Major
>
> {code:groovy}
> import groovy.transform.*
> class Base {
>     boolean f
>     boolean isF() { true }
>     boolean getF() { false }
>     @CompileStatic
>     static class Sub extends Base {
>         boolean isF() { false }
>         boolean getF() { true }
>         def plain() { super.f }
>         def test() { def c = { -> super.f }; c() }
>     }
> }
> assert new Base.Sub().plain()
> assert new Base.Sub().test()
> {code}
> Actual: groovy.lang.MissingPropertyException: No such property: f for class: 
> Base$Sub, for both methods. If Sub overrides only isF, both return the result 
> of Base.getF instead. The same happens for any property whose getter Sub 
> overrides (for example String x with getX), and assigning super.x in a 
> closure throws VerifyError.
> Expected: both assertions pass. Base.isF is called, as in dynamic Groovy.
> Within a class nested in its superclass, the type checker resolves super.f as 
> the superclass field that the nested class may access, so it records no 
> accessor and requests no super$ helper, and static compilation falls back to 
> a dynamic getPropertyOnSuper call. That call cannot reach the overridden 
> accessors of a statically compiled class, which has no MOP methods. A plain 
> subclass that is not nested in its superclass is not affected.
> Seen in 4.0.33, 5.0.8, 6.0.0 and master. With PR #3049 (GROOVY-12518) the 
> plain super.f works and only the closure and lambda forms fail.
> PR: https://github.com/apache/groovy/pull/3114



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to