Community
Participate
Working Groups
I20031209 Calling isStrucutureKnown on the local variable a in the attached example throws a JavaModelException. Java Model Exception: Java Model Status [a [in run() [in <anonymous #1> [in foo (int) [in A [in [Working copy] A.java [in <default> [in <project root> [in TT]]]]]]]] does not exist.] public class A { static class XX extends A { public void foo() { } public void bar() { } } public void foo(int y) { Runnable runnable= new Runnable() { private int field; public void run() { A a= null; } }; } public String foo(String s) { return s; } }
It should always return true...
Fixed and added regression test ResolveTests.testLocalVarIsStructureKnown()
Verified for 3.0 M6 with build I200312162000: - code in M6 OK - test case failed in M5 and OK in M6