This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/17691] error on valid java code from freenet


------- Additional Comments From ruben at ugr dot es  2004-09-28 09:10 -------
The workaround does not work when in an inner class. This was the original problem.

>cat a.java

class A {
    int x() {
        return 0;
    }
}
class B extends A {
    int x(){
        return 1;
    }
    class C {
        int y(){
            return B.super.x();
        }
    }
}

>javac a.java

#no error

>gcj a.java
a.java:13: error: 'class' or 'this' expected.
            return B.super.x();
                        ^
1 error


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17691


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]