This is the mail archive of the java@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] |
Hi, I'm having trouble understanding a few compile errors. I guess I can best explain
it with an example:
public class One { public Object A() { return new Object(); } } public class Two extends One { public void B () { Object obj = Two.super.A(); } public static void main(String[] args) {} }
gcj -c *.java
Two.java:5: error: 'class' or 'this' expected. Object obj = Two.super.A ()
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |