gcj/257: Cannot cast to inner class
mark@klomp.org
mark@klomp.org
Thu Jun 8 14:16:00 GMT 2000
>Number: 257
>Category: gcj
>Synopsis: Cannot cast to inner class
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 08 14:16:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: mark@klomp.org
>Release: gcc version 2.96 20000602 (experimental)
>Organization:
>Environment:
>Description:
The following legal java code does not compile:
public class A {
public static void main(String args[]) {
B.C bc = (B.C) new B.C();
}
}
class B {
static class C {
}
}
compiling with 'gcj --main=A A.java' gives:
A.java: In class `A':
A.java: In method `main(java.lang.String[])':
A.java:3: Class `B.C' not found in type declaration.
B.C bc = (B.C) new B.C();
^
1 error
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list