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 75606 - Missleadnig info message when adding elements to class
Summary: Missleadnig info message when adding elements to class
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-27 10:54 UTC by Jiri Prox
Modified: 2007-09-26 09:14 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 Jiri Prox 2006-04-27 10:54:09 UTC
NB 5.5 200604270200

Missleading message is displayed when adding elements (top level class or inner
classes) with existing name. It says 'The specified name is not a valid java
identifier', although the identified is OK. It should display something like
'The specified identified already exists'

Steps to reproduce:
1) create new class A
2) add inner class named Inner
3) select the node related to class A in project view
4) form popup menu select Add-> Inner Class
5) in the dialog fill is 'Inner' as the name.
6) press tab 
-> ... invalid identifier message is dispayed

alternative steps:
...
3) select node relata to resource file containing A
4) form popup menu select Add-> Class
5) in the dialog fill is 'A' as the name.
...
Comment 1 Daniel Prusa 2006-04-27 15:52:13 UTC
Fixed in trunk.

/cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ClassCustomizer.java
new revision: 1.14; previous revision: 1.13
Comment 2 Jiri Prox 2006-07-14 14:27:45 UTC
verified