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 235993 - Disable formatting of comments embedded in code
Summary: Disable formatting of comments embedded in code
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-15 18:37 UTC by _ gtzabari
Modified: 2016-07-07 07:27 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2013-09-15 18:37:50 UTC
http://types.cs.washington.edu/checker-framework/current/checkers-manual.html#annotations-in-comments contains an example of embedding block comments in the middle of Java code.

I don't think it ever makes sense to format such comments as they cause the code to split across multiple levels. Netbeans should differentiate between these kind of comments and comments outside of Java statements and either skip formatting them by default or provide an option for doing so.
Comment 1 _ gtzabari 2013-11-26 06:32:50 UTC
Dusan,

This issue is blocking the use of Checker Framework, with no known workaround. I tried very hard looking for alternatives. See https://code.google.com/p/checker-framework/issues/detail?id=255 for background information.

Please take a look at your earliest convenience.
Comment 2 Martin Balin 2016-07-07 07:27:14 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