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 - alt + enter should create class with public keyword
Summary: alt + enter should create class with public keyword
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-08 18:55 UTC by gilbertoca
Modified: 2013-11-26 15:18 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 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