Bug 162743

Summary: Duplicate variable declaration code assist proposals
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: benno.baumgartner
Version: 3.3   
Target Milestone: 3.3 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Dani Megert CLA 2006-10-30 08:44:07 EST
I20061030-0010

The new support which shows variable declaration code assist proposals for already used but not yet declared variables lists one for each occurrence. There should be no duplication.

Test Case:
  int foo<code assist>
  foo= foo+1;
  foo= 3;
==> three 'foo' proposals instead of just one.
Comment 1 Dani Megert CLA 2006-10-31 05:06:56 EST
*** Bug 162869 has been marked as a duplicate of this bug. ***
Comment 2 David Audel CLA 2006-11-03 07:44:28 EST
Created attachment 53194 [details]
Proposed fix
Comment 3 David Audel CLA 2006-11-03 07:48:27 EST
Released for 3.3 M4.

Test added
  CompletionTests#testCompletionVariableName33()
Comment 4 Olivier Thomann CLA 2006-12-11 14:15:38 EST
Verified for 3.3M4 with I20061211-1119