Bug 333923 - [quick fix] Using create parameter quick fix should do a change method refactoring
Summary: [quick fix] Using create parameter quick fix should do a change method refact...
Status: CLOSED DUPLICATE of bug 160212
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 17:49 EST by Chris Leon CLA
Modified: 2011-01-11 08:24 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Leon CLA 2011-01-10 17:49:16 EST
Build Identifier: M20090917-0800

If I'm working with an unknown variable in a method, and do quick assist...  on it, I'm presented with options including Create parameter.  This is good, but using that assist simply changes the method signature without doing the full 'change method signature' type process, which includes changing all the callers of this method.  

I'd be ok with it simply adding ', newVariableName' to every caller, but it'd be even better if it could present me with a way of specifying a default value for the new parameter.

Reproducible: Always

Steps to Reproduce:
1. Create a method A with no arguments
2. Create a method B that calls method A
3. In the body of A, insert the line 'int x = y;'
4. Use quick assist to 'create parameter 'y''
5. See that method B doesn't compile because the no arg method signature no longer exists.
Comment 1 Markus Keller CLA 2011-01-11 08:24:22 EST

*** This bug has been marked as a duplicate of bug 160212 ***