This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]