This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/5640] gcj references wrong class in qualified method invocation
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2003 00:19:18 -0000
- Subject: [Bug java/5640] gcj references wrong class in qualified method invocation
- References: <20020209015600.5640.ebb9@email.byu.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5640
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-24 00:19 -------
Found the email: <http://mail.gnu.org/archive/html/classpath/2002-02/msg00112.html>.
>From that email:
It makes a difference in this example:
in A.java:
class A
{
static void m() { System.out.print("a"); }
}
in B.java:
class B extends A {}
in C.java:
class C
{
public static void main(String[] args)
{
B.m();
}
}
Now, recompile B.java:
class B extends A
{
static void m() { System.out.print("b"); }
}
The result of executing the (unchanged) C.class should now be "b", not
"a".