Bug 126227 - default constructor not resolving for method-level classes
Summary: default constructor not resolving for method-level classes
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows 2000
: P3 minor (vote)
Target Milestone: 3.2 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 12:49 EST by Hollis Waite CLA
Modified: 2006-02-15 10:48 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.