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.

Bug 134344 - Refactoring parameters name should affect Javadoc
Summary: Refactoring parameters name should affect Javadoc
Status: RESOLVED DUPLICATE of bug 102669
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@java
Depends on:
Reported: 2008-05-01 19:49 UTC by malfunction84
Modified: 2008-05-05 15:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description malfunction84 2008-05-01 19:49:26 UTC
Refactoring a method parameter name does not change the javadoc comments on that method.  It should change existing 
@param elements to whatever the new method names are.  This ought to be a relatively simple fix.

Down the road, perhaps refactoring a parameter name could also search existing javadoc comments in that project for 
references to that parameter and change them as well.  It would need a preview mode, much like refactoring the name of 
a non-private method.
Comment 1 Jiri Prox 2008-05-05 13:08:48 UTC
Have you checked 'Apply rename on Comments' checkbox in refactoring rename?
Comment 2 malfunction84 2008-05-05 14:43:00 UTC
That option doesn't exist for the "instant rename" feature, which is what comes up when you attempt to refactor a 
method parameter name.  "Instant rename" should also instantly rename the @param elements instead of leaving you with 
code that generates two javadoc warnings.
Comment 3 Jiri Prox 2008-05-05 15:08:05 UTC
I see, then it's duplicate of issue 102669

*** This issue has been marked as a duplicate of 102669 ***