This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/23230] Wrong "this" used when call made to superclass which is also superclass of enclosing class
- From: "rmathew at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 8 Aug 2005 09:43:41 -0000
- Subject: [Bug java/23230] Wrong "this" used when call made to superclass which is also superclass of enclosing class
- References: <20050804150110.23230.greenrd@greenrd.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rmathew at gcc dot gnu dot org 2005-08-08 09:43 -------
Another testcase:
------------------------------- 8< -------------------------------
class Snafu
{
public void whoami( )
{
System.out.println( this.getClass( ).getName( ));
}
}
public class PR23230 extends Snafu
{
class Foo extends Snafu
{
Foo( )
{
whoami( );
}
}
void bar( )
{
new Foo( );
}
public static void main( String[] args)
{
new PR23230( ).bar( );
}
}
------------------------------- 8< -------------------------------
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |08/msg00321.html
Keywords| |patch
Last reconfirmed|2005-08-04 15:23:34 |2005-08-08 09:43:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23230