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 254830 - Project license header not used for new classes
Summary: Project license header not used for new classes
Status: RESOLVED DUPLICATE of bug 253466
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2015-08-28 17:55 UTC by tkellerer
Modified: 2015-08-29 20:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2015-08-28 17:55:56 UTC
I have defined a project specific license header in the project properties.

This used to work fine with NetBeans 8.0, but when using 8.1beta, the license header is not applied for new classes. Instead the following is inserted:

 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.

(Needless to say that this is not the content of my project license)

When I switch the project properties to use a global (customized) license, NetBeans still uses the above text.
Comment 1 Jiri Kovalsky 2015-08-28 18:25:56 UTC
Isn't this another duplicate of issue #253466? Which build do you use Thomas?
Comment 2 tkellerer 2015-08-28 18:34:15 UTC
I'm using 8.1 beta (Build 201508041349)

But it happens when creating a new class (or Enum), not when implementing an interface. 

(I searched for issues regarding the license header, but for some reason the linked issue did not show up).
Comment 3 tkellerer 2015-08-29 20:46:24 UTC
This is indeed fixed in the current dev build. I tried build 201508280002

*** This bug has been marked as a duplicate of bug 253466 ***