Bug 162743 - Duplicate variable declaration code assist proposals
Summary: Duplicate variable declaration code assist proposals
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 162869 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-30 08:44 EST by Dani Megert CLA
Modified: 2006-12-11 14:15 EST (History)
1 user (show)

See Also:


Attachments
Proposed fix (8.38 KB, patch)
2006-11-03 07:44 EST, David Audel CLA
no flags Details | Diff

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