An inner class that references a static variable in an outer class will fail if the super class of that outer class defines the same variable with a visibility that makes it inaccessible to the inner class.
-- Summary: Variable names incorrectly resolved in inner classes. Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thhal at mailblocks dot com CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20193