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

Summary: Auto-fixing Javadoc problems destroys, in a special case, the entire Javadoc block
Product: java Reporter: stwr
Component: JavadocAssignee: Ralph Ruijs <ralphbenjamin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

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.