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 246794

Summary: Constructor generation wizard: allow selection of access modifier
Product: java Reporter: terje7601
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description terje7601 2014-09-01 07:14:30 UTC
Completely analog to issue 114326, I would also like this enhancement for constructor generation. My use case: JPA requires no-args constructors, but I typically don't want to expose them, so I make them protected by default.

Ideally, there would be 2 options as well: a default visibility for the no-args constructor, and one for constructors with one or more arguments. In my case, I would set no-args visibility to protected, and the other to public then.