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

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

eric-milles merged PR #2192:
URL: https://github.com/apache/groovy/pull/2192




> Calls to the outer class's super from an inner class does not work
> ------------------------------------------------------------------
>
>                 Key: GROOVY-11611
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11611
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler, Static compilation
>    Affects Versions: 4.0.24
>            Reporter: Saravanan
>            Assignee: Eric Milles
>            Priority: Minor
>
> This example fails with a compile error "no such property super in 
> java.lang.Class" on the line MyImplementation.super.myValue()
> I am running static compilation
> {code:java}
> public class Wrapper {
>     public class MyInterface {
>         String myValue() {
>             return "BLAHBLAH";
>         }        
>         public static class MyImplementation extends MyInterface {            
>             private String myValueFunction() {
>                 return super.myValue();
>             }
>             private final class Builder {
>                 void init() {
>                     // Error with no such property super in java.lang.Class
>                     // maybe because MyImplementation makes a Class reference 
> in groovy
>                     MyImplementation.super.myValue()
>                 }
>             }
>         }
>     }
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to