death lord created GROOVY-9391:
----------------------------------

             Summary: Casting the superclass object and calling it stack 
overflows
                 Key: GROOVY-9391
                 URL: https://issues.apache.org/jira/browse/GROOVY-9391
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 3.0.0
            Reporter: death lord


{code:groovy}
import groovy.transform.CompileStatic as S

@S class A { def oo() { println 'a' } }
@S class B extends A { def oo() { println 'b' } }
@S class C extends B { def oo() { ((A) super).oo() } }

new C().oo(){code}
Either casting super should give an error or there should be functionality to 
use some method handle to do this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to