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 256730 - Copyright header is reformatted unexpectedly
Summary: Copyright header is reformatted unexpectedly
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All Mac OS X
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-22 22:15 UTC by csbubbles
Modified: 2015-11-25 02:32 UTC (History)
0 users

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 csbubbles 2015-11-22 22:15:50 UTC
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.
Comment 1 Jiri Prox 2015-11-23 14:12:01 UTC
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
Comment 2 Dusan Balek 2015-11-24 09:54:16 UTC
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
Comment 3 Quality Engineering 2015-11-25 02:32:13 UTC
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.