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 - Constructor generation wizard: allow selection of access modifier
Summary: Constructor generation wizard: allow selection of access modifier
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-01 07:14 UTC by terje7601
Modified: 2014-09-01 07:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.