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 254835

Summary: Automatically generated Javadoc contains, in special case, unwanted empty lines
Product: java Reporter: stwr
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: ralphbenjamin
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: Test.java
Unwanted lines

Description stwr 2015-08-29 06:02:42 UTC
Created attachment 155732 [details]
Test.java

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. Open attached Test.java
2. Analyze Javadoc for the class
3. Inside the Analyzer tab panel check the entire 'Test.java' and hit 'Fix Selected'

--Actual Result--
Automatically generated Javadoc contains unwanted empty lines: 20 and 28 (please see the picture 'Unwanted lines').


My analyze showed that the issue does not occur when there are no empty lines between <editor-fold> tags and method declarations - at lines 15 and 18 in the original Test.java.
The conclusion is that, whenever there is an empty line after the <editor-fold> tag, and before an entity which will get generated Javadoc, then this Javadoc will contain unwanted empty line. Please declare some public member, surround it with <editor-fold>, add an empty line and generate Javadoc by fixing selected problems.
The issue relates to both <editor-fold> tags - the opening one as well as closing one.
Comment 1 stwr 2015-08-29 06:03:09 UTC
Created attachment 155733 [details]
Unwanted lines
Comment 2 Jiri Prox 2015-10-15 09:01:03 UTC
reproducible