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 184365 - [69cat] Generated class constructor should have the most restrictive visibility possible
Summary: [69cat] Generated class constructor should have the most restrictive visibili...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2010-04-16 14:44 UTC by misterm
Modified: 2013-09-02 14:20 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-04-16 14:44:25 UTC
When you type new SomeClass() and SomeClass doesn't exist, a hint is shown for creating class SomeClass. When the class gets created, it gets package level visibilitym but the constructor is created as public. The constructor should be package-level targeted, not only for consistency, but mainly because sometimes the developer needs the class to be public (due to some framework/architecture), while the constructor could (and sometimes should) remain restricted.

Product Version = NetBeans IDE Dev (Build 100415-e85113ae6b6f)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_04
Runtime = Java HotSpot(TM) Client VM 10.0-b19