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

Summary: [69cat] Generated class constructor should have the most restrictive visibility possible
Product: java Reporter: misterm <misterm>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: hmichel
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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