Bug 144071 - [quick fix] Support for refactoring arrays to lists (or vice versa)
Summary: [quick fix] Support for refactoring arrays to lists (or vice versa)
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 256020 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-27 05:46 EDT by Dan Winterstein CLA
Modified: 2012-05-29 05:30 EDT (History)
3 users (show)

See Also:


Attachments

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