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 54481 - renaming a package should alter javadoc references
Summary: renaming a package should alter javadoc references
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 14:51 UTC by orat
Modified: 2016-07-07 07:29 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description orat 2005-02-03 14:51:27 UTC
References in Javadoc comments (like the @see tag)
should be altered when renaming a package.

(Same with renaming a single class or a method but
I didn't check whether it does it or not)
Comment 1 Jan Becicka 2005-02-03 18:37:04 UTC
Rename of javadoc is already implemented for method and class rename.
Unfortunately not for move class nor package rename.
Tomasi, do you plan to implement it?
Comment 2 brutzman 2009-09-10 05:30:02 UTC
Rename of parameter names in method declarations does not rename @param tags in preceding Javadoc - tested in Netbeans 6.7.1

p.s. this bug is 4.5 years old!
Comment 3 Jan Pokorsky 2009-09-10 14:58:28 UTC
brutzman: rename of @param works even in NB 6.7.1 using Menu/Refactoring/Rename with apply on comments. The instant
rename with ctrl+R was implemented in NB 6.8, see issue 102669. BTW there is a lot of open issues volunteers are welcome!

The reliable refactoring of references in javadoc tags (@see, @link, ...) is not possible without a class index over all
javadocs that is not and most likely is not going to be implemented. What jbecicka mentioned is a full text search and
replace in javadocs of files where some occurrence of the refactored element was found.

As a workaround for package renames you can import the class and use just simple name as the reference in tags if possible.
Comment 4 Martin Balin 2016-07-07 07:29:28 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss