This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/17691] error on valid java code from freenet
- From: "ruben at ugr dot es" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 28 Sep 2004 09:10:07 -0000
- Subject: [Bug java/17691] error on valid java code from freenet
- References: <20040927123610.17691.ruben@ugr.es>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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