Win2k sp1, jdk 1.3.1_02, Build #605:

Given the following two classes...

---------------------------------------------------
public class Outer
   {
   public class Inner
      {
      public void sayHello()
         {
         System.out.println("Hello from Inner");
         }
      }
   public void sayHello()
      {
      System.out.println("Hello from Outer");
      }
   }
---------------------------------------------------
public class Junk
   {
   public static void main(String[] args)
      {
      Outer outer = new Outer();
      Outer.Inner inner = new Outer().new Inner();
      outer.sayHello();                   ^^^^^  
      inner.sayHello();
      }
   }
---------------------------------------------------

IDEA incorrectly highlights the last occurrence of the word "Inner" as an
error in the second line of Junk's main() method (shown above with carets).
When hovering over it with the mouse, the popup reads "Cannot resolve symbol
Inner".  The code compiles and executes fine, however.

Thanks,

chris

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

Reply via email to