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 46447 - Delete package sometimes don't ask for confirmation
Summary: Delete package sometimes don't ask for confirmation
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-07-22 15:51 UTC by zikmund
Modified: 2008-12-22 17:52 UTC (History)
1 user (show)

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 zikmund 2004-07-22 15:51:41 UTC
Build 200407201800

1) Have a project with 2 classes in these
encapsulated packages:
      com.module.AClass
      com.module.model.BClass
2) Delete package com.module
3) ERROR 1:
No any confirmation dialog appears (if package
nonempty) - I'd expect similar confirmation
message as for a folder.
4) ERROR 2:
All subpackages (com.module.model in this case)
are deleted as well - I'd expect deleting only
selected package, not the subpackages.

(Sorry if wrong component set, I didn't find any
more appropriate)
Comment 1 Lukas Hasik 2004-07-22 15:59:36 UTC
I can confirm that sometimes the 'Confim delete' dialog doesn't
appears, but it seems to be random to me. Karle, Do you have 100%
reproducible scenario ? 

error2 is covered by issue 46399 and was just fixed by hrebejk
Comment 2 zikmund 2004-07-22 16:50:16 UTC
You're right Lukasi, it seems to be random. It happend to me 3 times
before (once even with clean userdir), but I can't reproduce it now :-(.
Comment 3 Jaroslav Tulach 2004-07-29 14:32:45 UTC
Random error, moreover about confirmation dialog, does not deserve P2.
The problem with deleting wrong sources is P2, but that is different
issue.
Comment 4 Petr Nejedly 2005-05-04 14:55:15 UTC
Can't reproduce.
I've checked the (current) codebase and all relevant places explicitely request
delete action with confirmation dialog.
The only case where you don't get the confirmation dialog is if you have
selected some special EJB nodes that signal the openide it will provide the
dialog itself.
But in that case it would be problem of that node, not openide/explorer.
Comment 5 Tomas Danek 2005-07-15 14:26:09 UTC
I tried this several times, with non-clear userdir on 4.2 20050706, jdk mustang,
and didn't occure ERR1, nor ERR2. If no further comments, i'll close this bug.