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

Summary: Aligning inside block comments
Product: java Reporter: Jan Lahoda <jlahoda>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: machinegodzilla, mslama, sdedic
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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