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 - New Project Wizard: CDC main class validity check should be fixed
Summary: New Project Wizard: CDC main class validity check should be fixed
Status: RESOLVED WONTFIX
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@mobility
URL:
Keywords:
Depends on:
Blocks: 162137
  Show dependency tree
 
Reported: 2009-02-20 12:24 UTC by alex_pst
Modified: 2009-04-07 15:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.