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 238178

Summary: alt + enter should create class with public keyword
Product: java Reporter: gilbertoca <gilbertoca>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description gilbertoca 2013-11-08 18:55:47 UTC
Every time the IDE is instructed to create a new class, using ALT+ENTER, that class is generated WITHOUT the keyword public:
[code]
class com.xxxxxxxxClass {
}

instead of

public class com.xxxxxxxxClass {
} 
[/code]

Causing some different exceptions when using reflection or any api that discover fields. 

Wouldn't it be better to create class with the public keyword?

Regards