gcj fails to compile the following testcases, while jikes, javac, and Eclipse allow the code. (Might be a duplicate of existing inner classes problem reports.) /* GCJ inner class problem */ import java.awt.*; public class SSS extends Canvas { int state = 0; public class Selector extends Dialog { public Selector( Frame parent ) { super( parent ); } public void foo() { state = 42; } } }
Confirmed, here is a self contained example (which shows easier where the problem is): class T { private int state; } public class SSS { int state = 0; public class Selector extends T { public void foo() { state = 42; } } }
I looked and I don't see this as being a duplicate of the existing inner class bug reports.
All gcj front end bugs have been fixed by the gcj-eclipse branch merge. I'm mass-closing the affected PRs. If you believe one of these was closed in error, please reopen it with a note explaining why. Thanks.