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 158889

Summary: New Project Wizard: CDC main class validity check should be fixed
Product: javame Reporter: alex_pst <alex_pst>
Component: -- Other --Assignee: issues@mobility <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 162137    

Description alex_pst 2009-02-20 12:24:08 UTC
User can enter new CDC main class name which doesn't conform to Java Language specification in "New Project Wizard". Now
it's possible to define new class name like "true.false.null" and it will be created by SDK, but shouldn't.


Quote from Java Language Specification:
3.8 Identifiers
An identifier is an unlimited-length sequence of Java letters and Java digits, the first of which must be a Java letter.
An identifier cannot have the same spelling (Unicode character sequence) as a keyword (§3.9), boolean literal (§3.10.3),
or the null literal (§3.10.7).
Comment 1 Petr Suchomel 2009-02-26 09:16:05 UTC
I would expect the user has some common-sense not to it. There is check for accidental typos, but not for intentionally
non sense information. I would expect the user to have at least very basic knowledge of Java so I do not think check for
true.false.null is something necessary.