The following test case reports the wrong error message: public class Local2 { class I { void j() { int i = q; } } } $ gcj -c Local2.java Local2.java: In class `Local2$I': Local2.java: In method `Local2$I.j()': Local2.java:7: Local variable `q' can't be accessed from within the inner class `Local2$I' unless it is declared final. Release: trunk
From: Dara Hazeghi <dhazeghi@yahoo.com> To: bryce@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: java/4811: Incorrect error accessing non-existant outer field Date: Mon, 12 May 2003 11:43:34 -0700 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gcc&pr=4811 Hello, I can confirm that this problem still occurs on gcc 3.2, 3.3 branch and mainline (20030511). Dara
*** Bug 8432 has been marked as a duplicate of this bug. ***
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.