Bug 35232 - CodeAssist - wrong completion for static method in anonymous type
Summary: CodeAssist - wrong completion for static method in anonymous type
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-18 11:55 EST by David Audel CLA
Modified: 2003-12-16 11:20 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 David Audel CLA 2003-03-18 11:55:26 EST
1) create Y.java
public class Y {
  public static void foo(){}
}
2) create X.java
public class X {
  void bar(){
    new Y(){
      class Z extends Y {
        void bar(){
          foo<cursor>
        }
      }
    };
  }
}
3) do ctrl+space at cursor location
One of the completions is "<anonymous subclass of Y>.foo()". This completion is 
not correct.
Comment 1 Philipe Mulet CLA 2003-03-18 15:04:20 EST
Will consider later
Comment 2 Philipe Mulet CLA 2003-04-02 06:49:49 EST
reopen
Comment 3 David Audel CLA 2003-11-27 07:30:35 EST
Fixed and test added (CompletionTests#testCompletionStaticMethod1)
Comment 4 Frederic Fusier CLA 2003-12-16 11:19:53 EST
Verified with build I200312160010