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

Summary: Missleadnig info message when adding elements to class
Product: java Reporter: Jiri Prox <jiriprox>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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