This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


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

gcj/288: Cannot refer to inner static class



>Number:         288
>Category:       gcj
>Synopsis:       Cannot refer to inner static class
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 19 05:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     osk@hem.passagen.se
>Release:        unknown-1.0
>Organization:
>Environment:
egcs 2000-07-17
libgcj 2000-07-18
>Description:
(This might be old, but I couldn't find any matching PRs.)
Compiling the following code

  class Outer {
    public static class InnerStatic { }
  }
  class Test {
    public void method() {
      Outer.InnerStatic[] i;
    }
  }

with gcj snapshot 20000717 gives this error:

  $ gcj -C Test.java
  Test.java:7: Type `Outer.InnerStatic' not found in the declaration of
  the local variable `i'.
                Outer.InnerStatic[] i;
                ^
  1 error

while jikes compiles it just fine.
>How-To-Repeat:

>Fix:

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

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