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

Reply via email to