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 210999 - When renaming a type, all {@link ...} references in JavaDoc must refactored too
Summary: When renaming a type, all {@link ...} references in JavaDoc must refactored too
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-11 11:59 UTC by rherschke
Modified: 2016-09-17 18:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
An animated gif showing the problem in NetBeans 8.1 (1.08 MB, image/gif)
2016-09-17 18:29 UTC, manoelcampos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rherschke 2012-04-11 11:59:12 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Mac OS X version 10.7.3 running on x86_64
Java; VM; Vendor = 1.6.0_31
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.6-b01-414

Step's to reproduce:

- create two classes A and B
- in Class B create a javadoc comment as follows:
{code}
/**
 * {@link A}
 */
{code}
- rename Class A to C

Expected Result:
- the javadoc in Class B must be as follows:
{code}
/**
 * {@link C}
 */
{code}

Current Result:
- the javadoc is the same (with a wrong link to Class A)
Comment 1 rherschke 2015-02-16 14:22:40 UTC
Does not work!

If there is no field nor any other reference to Class A inside Class B except in the javadoc, the @link is not renamed. 

So it is still an unresolved issue.
Comment 2 Ralph Ruijs 2015-02-16 14:38:29 UTC
References in javadoc are not handled by java's indexer. Reassigning to java-source.
Comment 3 manoelcampos 2016-09-17 18:29:39 UTC
Created attachment 162094 [details]
An animated gif showing the problem in NetBeans 8.1

The issue persists in NetBeans 8.1 and causes several problems in maintaining 
updated and correct javadocs.