Summary: | Test failures in MethodParameterGuessingCompletionTest | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> | ||||
Component: | Core | Assignee: | David Audel <david_audel> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | daniel_megert, david_audel, martinae | ||||
Version: | 3.3 | ||||||
Target Milestone: | 3.3 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Markus Keller
2007-03-04 17:33:23 EST
These failures are caused by the fix for bug 162865. I forgot to run jdt/text tests before release the fix and i didn't see the bug in my fix. To guess parameters jdt/txt call jdt/core code assist at the beginning of the completed line. eg. package test1; public class Completion_testInsertMethodWithParam1<T> { public void testMethod(int param) { int foo= 3; Object obj= null; | fList.bar //code assist called at | } private java.util.List fList; } In this case jdt/core code assist has a bug and propose 'bar' as an unresolved simple name (bug 162865) but 'bar' is preceded by '.' so isn't a simple name. A simpler test case is public class X { void foo() { | zzz1.zzz2 //do ctrl+space at | } } zzz2 is proposed and should not. Created attachment 60275 [details]
Proposed fix
Released for 3.3M6. Test added CompletionTests#testNameWithUnresolvedReferences011() Verified for 3.3 M6 using build I20070320-0010. |