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

Summary: When renaming a type, all {@link ...} references in JavaDoc must refactored too
Product: java Reporter: rherschke
Component: SourceAssignee: Svata Dedic <sdedic>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: An animated gif showing the problem in NetBeans 8.1

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.