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 200441 - Code format breaks {@link}
Summary: Code format breaks {@link}
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.1
Hardware: PC Other
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 16:02 UTC by _ gtzabari
Modified: 2011-11-18 16:52 UTC (History)
1 user (show)

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 _ gtzabari 2011-07-27 16:02:27 UTC
Product Version: NetBeans IDE Dev (Build 201107220600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

The Javadoc code-format converts:

 * The {@link #read(ByteBuffer,long,TimeUnit,Object,CompletionHandler) read} and
 * {@link #write(ByteBuffer,long,TimeUnit,Object,CompletionHandler) write} methods defined by this

into

 * The {@link #read(ByteBuffer,long,TimeUnit,Object,CompletionHandler) read} and
 * {
 * @link #write(ByteBuffer,long,TimeUnit,Object,CompletionHandler) write} methods defined by this

notice how the second {@link} is broken across two lines.
Comment 1 _ gtzabari 2011-07-27 16:03:02 UTC
Correction, the result of code-format is:

 * The {
 *
 * @link #read(ByteBuffer,long,TimeUnit,Object,CompletionHandler) read} and
 * {
 * @link #write(ByteBuffer,long,TimeUnit,Object,CompletionHandler) write} methods defined by this

It actually breaking both links.
Comment 2 Dusan Balek 2011-07-29 13:09:36 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/7c41ac599d5c
Comment 3 Quality Engineering 2011-08-02 13:44:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7c41ac599d5c
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #200441: Code format breaks {@link} - fixed.
Comment 4 Jiri Prox 2011-11-18 16:52:34 UTC
verified in 7.1 RC1