Bug 126227

Summary: default constructor not resolving for method-level classes
Product: [Eclipse Project] JDT Reporter: Hollis Waite <hollis.waite>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.1.1   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Hollis Waite CLA 2006-02-02 12:49:11 EST
References to the default constructor of a class which is defined inside of a method do not resolve.

Example:
---
package x;

public class Tst {
    class Y {}
    private void x() {
        class X {}
        Object x = new X();
        Object y = new Y();
    }
}
---
In the above fragment, highlight 'Y' and invoke "Open Declaration" action.  Works great.  Now try the same think for 'X'.  I get the message "Current text selection does not resolve to a Java element."
Comment 1 Martin Aeschlimann CLA 2006-02-03 05:40:34 EST
ICodeAssist.codeSelect returns no results on 'X'
Comment 2 David Audel CLA 2006-02-07 12:10:18 EST
Fixed and test added
  ResolveTests#testLocalClass8()
Comment 3 Frederic Fusier CLA 2006-02-15 10:48:49 EST
Verified for 3.2 M5 using build I20060215-0010.