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 226749 - New Wizard Dialog hangs at Code Generation Stage if target package name has already existed.
Summary: New Wizard Dialog hangs at Code Generation Stage if target package name has a...
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 05:11 UTC by askldjd
Modified: 2013-07-17 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A screenshot of my project states when the wizard hangs. (109.02 KB, image/png)
2013-02-28 02:16 UTC, askldjd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description askldjd 2013-02-27 05:11:09 UTC
New Wizard Dialog hangs at the code generation stage if the target package name has already existed. If the target package name is new, it does not hang.

Step to reproduce this problem:

1. Right click on a module, choose New -> Wizard
2. 
   a. For Registration Type, Choose New File. 
   b. For Wizard Step Sequence, choose Static. 
   c. Number of Wizard Panel, type in 1.
3. Click Next
4. 
   Class Name Prefix, type in whatever. "testWizard" in my case.
   Package, type in an existing package name.
5. Click Finish, and the wizard should never complete.

I am using NetBeans 7.3 on Win7 64 Bit, Java7u11.

Thank you.

... Alan
Comment 1 Stanislav Aubrecht 2013-02-27 14:59:05 UTC
works for me in

Product Version: NetBeans IDE Dev (Build 20130227-d5e0b0561505)
Updates: Updates available
Java: 1.7.0_15; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 2 askldjd 2013-02-28 02:15:19 UTC
Sorry, my bug reported was incomplete. The problem appears to be very subtle.

If I create a wizard on an existing package that already has an existing file, it might hang.

I have a screenshot of this occurrence. On a new netbeans platform project, out of ten tries, I can only reproduce this problem twice. However, on my working project, it fails every time unless I target the wizard to a new package.
Comment 3 askldjd 2013-02-28 02:16:20 UTC
Created attachment 131989 [details]
A screenshot of my project states when the wizard hangs.
Comment 4 Martin Kozeny 2013-05-03 13:25:04 UTC
When I'm trying to reproduce this defect, New Wizard Dialog enforces me to use Dynamic Wizard Step Sequence instead of Static, when I have chosen New File as a Registration Type. I am using Dev Build 20130502.