[Bug java/23230] Wrong "this" used when call made to superclass which is also superclass of enclosing class
rmathew at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 8 09:43:00 GMT 2005
------- 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
More information about the Java-prs
mailing list