This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/305: Interface methods implementations not always checked
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/305: Interface methods implementations not always checked
- From: bryce at albatross dot co dot nz
- Date: 9 Aug 2000 09:54:30 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 305
>Category: gcj
>Synopsis: Interface methods implementations not always checked
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 03:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
The following code is illegal because the method a() is
not implemented in the class C. However, gcj does not report
this error if the interface it not an immediate/direct
superinterface. See also PR 278.
interface I1
{
int a();
}
interface I2 extends I1 {}
class C implements I2 {}
>How-To-Repeat:
Compile the example above.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: