When a method parameter is being renamed using action Refactor > Rename... and the user choses to rename the method parameter also in comments, the scope of renaming should be limited only to the Javadoc of the method.
JDK 6u18-b04, 64-bit, server VM
Linux (Debian Lenny), 64-bit, Intel CPU
Issue added to NetFIX Pool . Module owner please speak up if you disagree.
Created attachment 97565 [details]
Limiting method parameter rename to the scope of the method
IMHO limiting the scope of rename only to the javadoc, is too restrictive. At least I would find reasonable to add a comment referring to the parameter anywhere, where the parameter could be used. And in that case, those references in the comments should be renamed as well.
So in the patch, I limited the scope of the rename only to comments before the method, and to comments within the method body.
Tomasi, what do you think about this patch? Can you please integrate it if you don't have any comments? Thanks!
I will look at it tonight or tomorrow. Sorry I am very busy now.
The patch seems fine to me. Thanks for it and feel free to integrate.
Tomasi, Gabor does not have a push access to our Hg repository. Could you please integrate the patch on his behalf? Many thanks!
OK, I will do it.
Integrated into jet-main 76a8012d1857
Thanks for the patch!
Wonderful, thanks Tomasi for your review & integration and special thanks to Gabor for your patch!
Integrated into 'main-golden', will be available in build *201004240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <email@example.com>
Log: #176929:When renaming a method parameter, rename in comments should be limited to the Javadoc for the method. - integrating kapitarg's patch.
*** Bug 179696 has been marked as a duplicate of this bug. ***