This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
Re: gcj/274
- To: apbianco at cygnus dot com
- Subject: Re: gcj/274
- From: bryce at albatross dot co dot nz
- Date: 15 Dec 2000 04:40:00 -0000
- Cc: java-prs at sourceware dot cygnus dot com,
- Reply-To: bryce at albatross dot co dot nz
The following reply was made to PR gcj/274; it has been noted by GNATS.
From: bryce@albatross.co.nz
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
Cc:
Subject: Re: gcj/274
Date: 15 Dec 2000 04:33:26 -0000
Synopsis: bogus error for inner class "Class.this.method"
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Thu Dec 14 20:33:26 2000
State-Changed-Why:
This has been fixed in the current cvs.
Compiling your test case, I get:
$ gcj -c Component.java
Component.java: In class `Test$1':
Component.java: In method `paint()':
Component.java:15: Can't use variable `Canvas.this': type `Canvas' isn't an outer type of type `Test$1'.
int foo2 = Canvas.this.getSize();
^
Component.java:16: Can't use variable `Component.this': type `Component' isn't an outer type of type `Test$1'.
int foo3 = Component.this.getSize();
^
2 errors
which I believe is the correct error.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=274&database=java