Community
Participate
Working Groups
Build ID: I20060922-0010 Steps To Reproduce: 1. Consider the class: package testcase; public class TestCase { void test() { class A { class B {} } } } 2. Any type (e.g. Object or String) can be successfully resolved from within the context of the local type A, whereas this cannot be done from the one of inner type B. 3. A plugin that shows the problem and a workspace containing the test case itself are attached. More information: The problem is likely to be caused by the code of org.eclipse.jdt.internal.codeassist.SelectionEngine selectType method (consider the following condition): ... if (typeHandle.isAnonymous() || typeHandle.isLocal()) flags |= SourceTypeConverter.LOCAL_TYPE; ... Since the type B in the test case provided does not appear to be either anonymous or local, it has no chance to be considered in further calculations.
*** This bug has been marked as a duplicate of bug 186956 ***