This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/18787] New: If an abstract class implements an interface, but does not define some methods, also its NON-abstract subclasses compile without defining the method.
- From: "ativoli at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2004 15:43:30 -0000
- Subject: [Bug java/18787] New: If an abstract class implements an interface, but does not define some methods, also its NON-abstract subclasses compile without defining the method.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Given the follwoing interface and abstact classes:
------
I.java
------
interface I {
void test();
}
-------------
Abstract.java
-------------
abstract class Abstract implements I {}
The following class should NOT compile, as it does not define test(). However,
it compiles fine.
----------------
NonAbstract.java
----------------
class NotAbstract extends Abstract {}
--
Summary: If an abstract class implements an interface, but does
not define some methods, also its NON-abstract
subclasses compile without defining the method.
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ativoli at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18787