Hy,

we're having a little problem with Inner Inner classes (right, not exactly
beautiful, but the alternatives would be worse ...). When you have Inner
non-static classes IDEA gets confused when you reach the second level. in
the following code the InnerSquared in "i.new InnerSquared()" is
highlighted and the status line says "Cannot resolve symbol InnerSquared".

public class Test {
    public static void main(String[] args) {
        Test t = new Test();
        Inner i = t.new Inner();
        Object is = i.new InnerSquared();
    }

    public class Inner
    {
        public class InnerSquared
        {
            public InnerSquared() {
                System.out.println("Hello from Test.Inner.<init>");
            }
        }
    }
}

this Code compiles perfectly with javac from jdk 1.3.1 and 1.4.0-beta3 as
well as with jikes 1.14.

regards
Joachim Sauer


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to