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 254836 - Auto-fixing Javadoc problems duplicates, in a special case, the editor-fold closing tag
Summary: Auto-fixing Javadoc problems duplicates, in a special case, the editor-fold c...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2015-08-29 06:14 UTC by stwr
Modified: 2016-07-01 16:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Attachments (424 bytes, text/x-java-source)
2015-08-29 06:14 UTC, stwr
Duplicated closing tag (10.02 KB, image/png)
2015-08-29 06:15 UTC, stwr

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-29 06:14:43 UTC
Created attachment 155734 [details]

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)

I am not sure whether is it the java|Javadoc or editor|Code folding issue. However..

--Use Case--

1. Open attached
2. Analyze Javadoc for the class
3. Inside the Analyzer tab panel check the entire '' and hit 'Fix Selected'

--Actual Result--
The <editor-fold> closing tag is duplicated at line 22 (please see the picture 'Duplicated closing tag').

My analyze showed that the issue does not occur when there is no empty line between the <editor-fold> closing tag and the doMeRightToo(int x) method declaration - line 18 in the original
This issue may have common reason with a reason of bug 254835.
Comment 1 stwr 2015-08-29 06:15:06 UTC
Created attachment 155735 [details]
Duplicated closing tag
Comment 2 Jiri Prox 2015-10-15 09:07:28 UTC
Comment 3 Svata Dedic 2016-07-01 16:09:34 UTC
OK, troubles are caused by generating javadoc for the 2nd method. For some reason, the preceding line comment is duplicated.