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 46399 - Delete on package 'xxx.yyy' deletes even package 'xxx.cokoli'
Summary: Delete on package 'xxx.yyy' deletes even package 'xxx.cokoli'
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
: 46510 (view as bug list)
Depends on:
Blocks: 41535 46450
  Show dependency tree
 
Reported: 2004-07-21 14:51 UTC by Lukas Hasik
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
isEmpty is slightly modified (1.01 KB, patch)
2004-07-21 18:06 UTC, rmatous
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2004-07-21 14:51:27 UTC
it's there for a while
P1 -> can cause data lost ! -happend to me two
times :(

steps:
-have package structure like this (Project view):
 * prvni.druhy
 * prvni.treti
-delete package prvni.druhy and it deletes even
prvni.treti

not sure whom to assign and I've choose you,
Hrebejku ;)
Comment 1 Lukas Hasik 2004-07-21 15:02:41 UTC
one more note - after delete the packages disappear from Projects but
remain viseble in Files and when you take a look on HD then they are
really deleted
Comment 2 Lukas Hasik 2004-07-21 16:35:53 UTC
for a while a thought this problem appears only in vcs filesystem but
it happend to me right now with fresh userdir and new 'local' project.

exact steps (I've tryed tree times)
-start IDE with fresh userdir
-create new project - Standard.Java Application
-create packages 'a.b' and 'a.c', create a java file in this packages
-delete package 'a.b'

* even 'a.c' is deleted
Comment 3 rmatous 2004-07-21 18:05:31 UTC
Problem seems to be in PackageViewChildren. Review attached patch.
Comment 4 rmatous 2004-07-21 18:06:25 UTC
Created attachment 16367 [details]
isEmpty is slightly modified
Comment 5 Petr Hrebejk 2004-07-22 08:32:45 UTC
Ok it looks like my impl of isEmpty() was really stupid. Thanks Radek
for finding it.

Comment 6 Petr Hrebejk 2004-07-22 15:28:17 UTC
Pattch applyied. Thanks
Comment 7 Petr Hrebejk 2004-07-24 09:06:39 UTC
*** Issue 46510 has been marked as a duplicate of this issue. ***
Comment 8 Lukas Hasik 2004-07-28 10:25:50 UTC
[200407271830] - verified