refering to inner classes from imports doesn't work
Thu Feb 7 15:55:00 GMT 2002
I've got some code like this:
public class A
public static X createSomething ()
return new X();
public class X
public void someMethod ()
public class B
public void someThing ()
X var = A.createSomething();
But trying to compile this with GCJ produces the following error:
Type `X' not found in the declaration of the local variable `var'.
X var = (X) A.createSomething();
This does compile with javac.
If GCJ does this it won't be able to compile javamail which also uses
import references to inner classes.
More information about the Java