Bug 144071

Summary: [quick fix] Support for refactoring arrays to lists (or vice versa)
Product: [Eclipse Project] JDT Reporter: Dan Winterstein <danielw>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: aniefer, daniel_megert, ruediger.herrmann
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dan Winterstein CLA 2006-05-27 05:46:04 EDT
Hello,
I've just converted some array-based code into list-based code, and its a tedious process. It's also entirely mechanical. So it would be nice to have a refactoring method that can replace an array field or variable with a list one, and vice-versa.
 - Daniel
Comment 1 Martin Aeschlimann CLA 2006-05-29 11:50:45 EDT
Good idea, we will have to see where this fits in. Maybe also a quick fix?
Comment 2 Dan Winterstein CLA 2006-05-29 11:58:19 EDT
(In reply to comment #1)
> Good idea, we will have to see where this fits in. 

:)

> Maybe also a quick fix?

Converting between list.get(int) and array[int] when the wrong one is used? That would be good too.
Comment 3 Martin Aeschlimann CLA 2006-06-08 11:53:03 EDT
The diffenerce if that a quick fix would only make changes locally, in the same file and not update references from outside.
This might be good enough as fields are rarely protected.
The advantage is, that is is more realistic than a new refactoring where we can't grow the list of refactorings for usability reasons
Comment 4 Dani Megert CLA 2008-11-21 03:01:03 EST
*** Bug 256020 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2008-11-21 03:01:48 EST
Martin, if you are no longer planning on working on this item then please move it back to the inbox. Thanks.