public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/1958: Incorrect error message attempting to access non-final local from local class
@ 2001-07-03 17:20 apbianco
0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2001-07-03 17:20 UTC (permalink / raw)
To: apbianco, bryce, gcc-bugs, gcc-prs, java-prs, nobody
Synopsis: Incorrect error message attempting to access non-final local from local class
Responsible-Changed-From-To: unassigned->apbianco
Responsible-Changed-By: apbianco
Responsible-Changed-When: Tue Jul 3 17:20:39 2001
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Tue Jul 3 17:20:39 2001
State-Changed-Why:
There an attached patch.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=1958&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: java/1958: Incorrect error message attempting to access non-final local from local class
@ 2002-01-27 15:43 rodrigc
0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-01-27 15:43 UTC (permalink / raw)
To: apbianco, bryce, gcc-bugs, gcc-prs, java-prs
Synopsis: Incorrect error message attempting to access non-final local from local class
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 27 15:43:30 2002
State-Changed-Why:
http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00321.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=1958
^ permalink raw reply [flat|nested] 3+ messages in thread
* java/1958: Incorrect error message attempting to access non-final local from local class
@ 2001-04-01 0:00 bryce
0 siblings, 0 replies; 3+ messages in thread
From: bryce @ 2001-04-01 0:00 UTC (permalink / raw)
To: gcc-gnats
>Number: 1958
>Category: java
>Synopsis: Incorrect error message attempting to access non-final local from local class
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 12 22:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: gcc version 2.97 20010207 (experimental)
>Organization:
>Environment:
>Description:
The code below is illegal because x is non final in Local2.a().
gcj reports:
$ gcj -c Local2.java
Local2.java: In class `Local2$I':
Local2.java: In method `Local2$I.b()':
Local2.java:8: Undefined variable `x'.
int b() {return x;};
^
1 error
but the correct error (as reported by javac) is:
Local2.java:8: local variable x is accessed from within inner class; needs to be declared final
>How-To-Repeat:
public class Local2
{
void a()
{
int x;
class I
{
int b() {return x;};
}
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-01-27 23:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-03 17:20 java/1958: Incorrect error message attempting to access non-final local from local class apbianco
-- strict thread matches above, loose matches on Subject: below --
2002-01-27 15:43 rodrigc
2001-04-01 0:00 bryce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).