[Bug java/17691] error on valid java code from freenet
ruben at ugr dot es
gcc-bugzilla@gcc.gnu.org
Tue Sep 28 09:10:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list