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 254814 - Auto-fixing Javadoc problems destroys, in a special case, the entire Javadoc block
Summary: Auto-fixing Javadoc problems destroys, in a special case, the entire Javadoc ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-28 13:02 UTC by stwr
Modified: 2015-08-28 13:02 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 stwr 2015-08-28 13:02:36 UTC
Product Version: NetBeans IDE Dev (Build 201508280002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

--Use Case--

1. Have a method (see below) with the same Javadoc
2. Perform Javadoc analyze for a class containing this method
3. Check the 'Fix on Next' in the Analyzer view
4. Hit 'Next Problem' in the Analyzer view

/**
 * Test method.
 * 
 * @param x 
 * @throws 
 */
public void test(int x){};

--Expected Result--
Only the unwanted '@throws' tag is removed.

--Actual Result--
The unwanted '@throws' tag is removed together with following new line character. This is how the method and its Javadoc are looking afterwards:

/**
 * Test method.
 * 
 * @param x     */
public void test(int x){};

--Additional Information--
The issue does not occur for extra '@return' tag. Only the unwanted tag is being deleted.