java/9869: Inner class of implemented interface not found

jjc@jclark.com jjc@jclark.com
Thu Feb 27 03:26:00 GMT 2003


>Number:         9869
>Category:       java
>Synopsis:       Inner class of implemented interface not found
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 27 03:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     jjc@jclark.com
>Release:        gcc version 3.3 20030217 (prerelease)
>Organization:
>Environment:

>Description:
A.java:

interface A {
  class B { }
}

C.java:

class C implements A {
  void foo(B b) { }
}

$ gcj C.java A.java
C.java:2: error: Type `B' not found in the declaration of the argument `b' of method `foo'.
     void foo(B b) { }
              ^
1 error

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list