This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Disclaimer: the Help File says "You can not remove parameters that were in the method before you opened the dialog box." But then what's the point of refactoring? I cannot remove an old parameter, and the dialog also doesn't allow me to change an old one in any way. What I expect when I click "Change Method Parameters" is that that wizard allows me to *change my method's parameters*. (no offense, it's just misleading advertising) I think this is a severe bug, because it makes the refactoring dialog much less useful (only if you want to add another parameter, but useless in any other case). Also I'd say it's not just a missing feature, but an actual bug, as the behavior doesn't match the Menu entry's name at all (it should say "add method parameter(s)"). I'm running the newest NB 6.0M2, sadly, but I hope work on this is planned...
IDE 6.0 Preview (M9, build 070502) 1.6.0-dp; Java HotSpot(TM) Client VM 1.6.0-b88-17-release Mac OS X version 10.4.9 running on i386 - refactoring doesn't do *anything*. I selected the class name, selected refactor > rename...; the dialog appeared; enter the new name; press Refactor; the dialog box closes, the file is unchanged.
scirka: I've filed a separate issue for you problem (see issue 104961, you are on CC), since it looks like a different bug. Please add any comment there. Thanks.
Change method parameters implements these features: 1. Add parameters 2. Remove parameters 3. Reorder parameters This is what it does. We will keep your comment as enhancement.
I am voting for this issue. It's feel unnatural to not be able to click in the table cell and edit either the name of the variable or , more often, its type. My driving use case was a desire to replace variables of StringBuffer with type StringBuilder, leaving their names and ordering in the parameter list the same. The workaround is to 1) add a new parameter, carefully re-typing all the information from the old parameter then 2) deleting the old parameter. thank you for reading this.
Changeset: 1d8761a7aaa2 Author: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Date: 2011-06-08 12:53 Message: Issue #83483 - Refactoring doesn't *change* method parameters
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/1d8761a7aaa2 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #83483 - Refactoring doesn't *change* method parameters