This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/288: Cannot refer to inner static class
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/288: Cannot refer to inner static class
- From: osk at hem dot passagen dot se
- Date: 19 Jul 2000 11:59:17 -0000
- Reply-To: osk at hem dot passagen dot se
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
>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: