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.
We use this kind of a template for our copyright header: /* **************************************************** * * Copyright 2015 My best company. All rights reserved. * * **************************************************** */ Up to v. 8.1, NetBeans handled it just fine simply keeping this stuff at the top of the file untouched. NetBeans 8.1 reformats it the following way when you run auto-reformatting (Ctrl-Shift-F on Mac): /* * **************************************************** * * Copyright 2015 My best company. All rights reserved. * * **************************************************** */ This is apparently unexpected. Please revert this to follow the previous behavior. Now we can't use auto-reformatting the way we have been using for years.
This is consequence of issue 251297. Just disable Format Block Comments and the initial comment won't be formatted again as in 8.0.2
Initial copyright header should not be formatted even if the 'Format Block Comments' option is enabled (only indentation should be allowed). Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/3b4619cea7ef
Integrated into 'main-silver', will be available in build *201511250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3b4619cea7ef User: Dusan Balek <dbalek@netbeans.org> Log: Issue #256730 - Copyright header is reformatted unexpectedly - fixed.