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.
Summary: | Renaming a method parameter makes javadocs from other methods containing the same parameter name gets refactored | ||
---|---|---|---|
Product: | java | Reporter: | fmonsalvo <fmonsalvo> |
Component: | Javadoc | Assignee: | issues@java <issues> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | fommil, ppis, sustaining |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
fmonsalvo
2009-11-13 06:13:56 UTC
Reproducible. Thank you for the report. fixed jet-main#9082b0fbc7e9 I suggest to add it to 68patch. Thanks, I would love to have this fixed on 6.8. Integrated into 'main-golden', will be available in build *200911280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9082b0fbc7e9 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #176784: compare parameter/type parameter as Element and not just name not to modify unrelated javadocs where are params with same name *** Bug 179189 has been marked as a duplicate of this bug. *** Reopen. === /** * * @param user */ void methodOne(String user) {} /** * * @param user */ void methodTwo(String user) {} === Renaming "user" causes both javadoc param modification either. I think there might be a slight confusion: there are two rename operations in the IDE: instant rename (renames only "local" elements, and the rename is directly done in the editor) and full refactoring. 9082b0fbc7e9 seems to correctly fix instant rename. Full refactoring may be a bit more difficult - it currently has option to "rename in comments", which, when on, simply renames the identifier in the comments and does not touch comments when off. Probably the refactoring should rename resolvable elements inside Javadoc even if "rename in comments" is off. I propose to create a new bug for the full refactoring, and change scope of this bug to only instant rename, and push the above fix to a patch release. (Because I think that instant rename is used for renaming parameters much more often than the full refactoring.) Ok. Understood. Verified. The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/5c55e5e55b92 V. |