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 186759 - [69cat] Removing comment and adding annotation generates blank line
Summary: [69cat] Removing comment and adding annotation generates blank line
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.2
Hardware: All All
: P4 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2010-05-26 18:50 UTC by misterm
Modified: 2016-07-12 01:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

test case (12.67 KB, application/x-java-archive)
2010-05-26 18:52 UTC, misterm

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-05-26 18:50:55 UTC
Using the soon-to-be-attached project, do the following to reproduce the bug:

1. Run it;
2. Open it in the new IDE, right-click FormattingBug and choose Show formatting bug when removing comments.

There is an extra blank line on top of the annotation that should not be there. This might seem a small bug, but it is irritating and generates unnecessary diff. If while it is being evaluated, someone could post the code to reformat the section between the beginning of the file and before the annotation so that the white space can be removed, I would appreciate it.

Product Version = NetBeans IDE Dev (Build 100525-68bc5456cdbc)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_19
Runtime = Java HotSpot(TM) Client VM 16.2-b04
Comment 1 misterm 2010-05-26 18:52:19 UTC
Created attachment 99509 [details]
test case
Comment 2 David Strupl 2012-10-25 13:41:39 UTC
Bug prior to 7.0, not touched for the last 2 years --> P4.
Comment 3 Martin Balin 2016-07-07 07:18:56 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 4 misterm 2016-07-12 01:04:44 UTC
Still valid, 6 years after :-(