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 241301 - "Add @return tag" hint breaks existing documentation text
Summary: "Add @return tag" hint breaks existing documentation text
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 04:38 UTC by swpalmer
Modified: 2016-07-07 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2014-02-03 04:38:35 UTC
Product Version = NetBeans IDE Dev (Build 201402020001)
Operating System = Mac OS X version 10.9.1 running on x86_64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b67


Given this code:

    /** Retrieves, but does not remove, the last element of this queue, or returns null if this queue is empty*/
    public E peekLast() {

Invoking the "Add @return tag" hint resulted in this code:

    /** Retrieves, but does not remove, the last element of this queue, or returns null if this queue is empt
	 * @return y*/
    public E peekLast() {


Note how it broke the word "empty", splitting it between the 't' and the 'y'.
In this example 'E' is a generic type parameter.
Comment 1 Jiri Prox 2014-02-03 07:06:27 UTC
reproducible
Comment 2 Martin Balin 2016-07-07 07:18:23 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