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 11324 - new jar contents wizard throws out jar with same name as existing
Summary: new jar contents wizard throws out jar with same name as existing
Status: CLOSED DUPLICATE of bug 7881
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
: 11503 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-04-11 18:45 UTC by Jan Benway
Modified: 2003-07-01 10:00 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 Benway 2001-04-11 18:45:58 UTC
Create a jar contents file called test.

Attempt to create a second jar contents file with the same name in the same
location. You get all the way through the wizard (possibly with extensive
customization) and after you hit finish, you are told that that file name
already exists so too bad for you. :)

This problem has been fixed for similar wizards. See:
http://www.netbeans.org/issues/show_bug.cgi?id=7881

(note that ideally I'd like the option to overwrite an existing file, but
following the current practice used in the New Class wizard would be better than
what the jar packager wizard is doing now)
Comment 1 Mike Schilling 2001-04-11 19:43:59 UTC
How are you doing this?

When I use the wizard, the target-choosing panel greys out "Next" anf "Finish" 
when I type a duplicate name.  Note that this panel isn't jar-packager-specific.  
The fix referred to in 7881 was for all wizards, including this one.
Comment 2 Jan Benway 2001-04-11 22:03:43 UTC
Well, after further investigation, it looks like I did something a bit weird,
and it might be a general bug, not specifically a jar packager bug.

It only happens in this case:

Create the test object in the root of a filesystem.

Now try to create the duplicate:

Bring up the wizard from File->New (not with right-click)
Choose the object type, hit next
Enter the name of the same-named object and indicate the root of the filesystem
as the target location.
Next is grayed out at this point.
Hit the back button to see the template selection page.
Hit Next again.
Now Next is (incorrectly) enabled and you hit the bug.

So, it is not a Jar packager bug, but a regular New wizard bug. I'm not sure
what category it goes in. Could you move it?
Comment 3 Mike Schilling 2001-04-11 22:14:37 UTC
This seems to be a hole in the fix for 7881.  Marking it a duplicate.  I also 
re-opened 7881 and left a pointer there to Jan's explanation of how to reproduce 
it.

*** This issue has been marked as a duplicate of 7881 ***
Comment 4 Mike Schilling 2001-04-17 23:19:19 UTC
*** Issue 11503 has been marked as a duplicate of this issue. ***
Comment 5 Quality Engineering 2003-07-01 09:58:11 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 09:59:51 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-07-01 10:00:58 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.