Summary: | [content assist] wrong method created when overriding static method | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Volodymyr Bychkoviak <vbychkoviak> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | daniel_megert, martinae |
Version: | 3.1 | ||
Target Milestone: | 3.2 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Volodymyr Bychkoviak
2005-08-11 04:57:42 EDT
Your scenario works for me but when I select: main(Stting[] args) void - Override method in 'A' it inserts a wrong proposal it's exactly what I mean. codeComplete should not propose the proposal since static methods can't be overridden in a OO-sense. Yes, but I still can create method main, so it should be possible to create method main with codeComlete. sure. that's why there's the main template. yes, I see. Fixed and tests updated. CompletionTests#testCompletionStaticMethodDeclaration1() CompletionTests#testCompletionStaticMethodDeclaration2() CompletionTests#testCompletionStaticMethodDeclaration3() CompletionTests#testCompletionStaticMethodDeclaration4() CompletionTests#testCompletionStaticMethodDeclaration5() CompletionTests#testCompletionStaticMethodDeclaration6() Static method aren't proposed any more. Verified in I20050920-0010 for 3.2M2 |