[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.
ativoli at gmx dot net
gcc-bugzilla@gcc.gnu.org
Thu Dec 2 15:43:00 GMT 2004
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
More information about the Java-prs
mailing list