Saravanan created GROOVY-11611:
----------------------------------

             Summary: 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


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