This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12893] The included test case does not link
- 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: 9 Nov 2003 19:09:23 -0000
- Subject: [Bug java/12893] The included test case does not link
- References: <20031104082226.12893.oyvind.harboe@zylin.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-09 19:09 -------
The code does excatlly what I said it did.
GCJ should have rejected this code when compiling to *.class like javac does:
D.java:13: abstract method f() cannot be accessed directly
void f(){super.f();}
^
1 error
Simplified version:
class A
{
void f(){}
}
abstract class B extends A
{
abstract void f();
}
class C extends B
{
void f(){super.f();}
}
Can you report my findings to classpath for this module?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2003-11-09 19:09:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12893