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 14449 - Setting invalid name of class throws IllegalStateException
Summary: Setting invalid name of class throws IllegalStateException
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -FFJ-
Hardware: PC Solaris
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-15 15:21 UTC by Jan Becicka
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 Jan Becicka 2001-08-15 15:21:20 UTC
[010814]
Invoke NFT and set invalid name as the class name. Click finish. StackTrace is 
written to the console:
java.lang.IllegalStateException: Test  is not a valid java class name.
        at 
org.netbeans.modules.java.ui.wizard.JavaWizardIterator.checkTargetName
(JavaWizardIterator.java:325)
        at 
org.netbeans.modules.java.ui.wizard.JavaWizardIterator.initializeTargetData
(JavaWizardIterator.java:368)
        at org.netbeans.modules.java.ui.wizard.JavaWizardIterator.access$400
(JavaWizardIterator.java:42)
        at 
org.netbeans.modules.java.ui.wizard.JavaWizardIterator$DelegatingPanel.readSetti
ngs(JavaWizardIterator.java:450)
Comment 1 Svata Dedic 2001-08-22 11:00:43 UTC
Does it display some dialog ? Is the dialog just an user message, or
the dreader "Unexpected exception" error ?
Comment 2 Svata Dedic 2001-08-30 17:58:20 UTC
The exception won't appear for two reasons:
- now it is an user-level message (it would be logged, still)
- I enhanced the location chooser, so you cannot escape with 
ill-formed name.
Comment 3 Jan Becicka 2001-09-18 16:15:24 UTC
[200109180940] Verified
Comment 4 Quality Engineering 2003-07-01 13:21:10 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.