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 225805 - Aligning inside block comments
Summary: Aligning inside block comments
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-06 16:00 UTC by Jan Lahoda
Modified: 2014-11-25 13:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2013-02-06 16:00:42 UTC
In Java, Tools/Options/Editor/Formatting/Java/Comments/Format Block Comments off. Consider comment like this:

/*
    private void t() {
        if (true) {
            System.err.println(1);
        }
    }
*/

Select the comment and call format. The result is something like this:
/*
 private void t() {
 if (true) {
 System.err.println(1);
 }
 }
 */

Which is (at least in this case) undesirable.
Comment 1 Svata Dedic 2014-08-22 13:53:11 UTC
Fixed in jet-main#612c81c4b3fa
Comment 2 Quality Engineering 2014-08-26 02:44:06 UTC
Integrated into 'main-silver', will be available in build *201408260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/612c81c4b3fa
User: Svata Dedic <sdedic@netbeans.org>
Log: #225805: block comment contents is preserved verbatim except last only-whitespace line with end-comment marker