gcj/283: GCJ fails to compile inner classes which extend another inner class

idstewart@softhome.net idstewart@softhome.net
Thu Jul 13 09:30:00 GMT 2000


>Number:         283
>Category:       gcj
>Synopsis:       GCJ fails to compile inner classes which extend another inner class
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 13 09:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     idstewart@softhome.net
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
public class OuterA {
  public class InnerA {
  }
}

public class OuterB {
  public class InnerB extends OuterA.InnerA {
  }
}

OuterA.java compiles just fine.  Compiling OuterB.java dies with "Superclass
'OuterA.InnerA' of class 'OuterB$InnerB' not found".

I believe this has to do with how GCJ resolves packages/classes/fields/methods
( e.g., GCJ is looking for OuterA/InnerA.class instead of OuterA$InnerA.class)
>How-To-Repeat:

>Fix:

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


More information about the Java-prs mailing list