gcj/274

bryce@albatross.co.nz bryce@albatross.co.nz
Thu Dec 14 20:40:00 GMT 2000


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


More information about the Java-prs mailing list