gcj/305: Interface methods implementations not always checked

bryce@albatross.co.nz bryce@albatross.co.nz
Wed Aug 9 03:00:00 GMT 2000


>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:


More information about the Java-prs mailing list