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 161763 - File node cannot be deleted after copying to the same package
Summary: File node cannot be deleted after copying to the same package
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-02 13:29 UTC by pribyl
Modified: 2009-05-13 07:27 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 pribyl 2009-04-02 13:29:15 UTC
Product Version: NetBeans IDE Dev (Build 200904020200)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

(Project/Files view) When a file is copied into the same package (either with refactoring or not), its node cannot be
deleted afterward.

To reproduce: create new sample Java project, copy Main.java into the same package (Main1.java is created). Now try to
delete the new node ->does not work.

This can be be reproduced also in J2EE project, but not in e.g. PHP project.

Reopening the project does not help, restarting IDE does.
Comment 1 Jan Jancura 2009-04-09 13:36:03 UTC
Can not reproduce on Linux + JDK 1.6.0_07.
My use case:
1) main menu - File / New Project - Java / Java Application (with main class)
2) go to Projects View, select Main.java
3) CtrlC, select javaapplication1 package and CtrlV > Copy Class dialog
4) Press Refactor button
5) Select Main1.java
6) press Delete button.

Is it the same scenario?
Can sb from QA test it on Win + JDK 1.6_13, please?
Thanks.
Comment 2 Jiri Prox 2009-04-09 14:21:40 UTC
I cannot reproduce it as well.

My configuration: 
Product Version: NetBeans IDE Dev (Build 200904090200)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\tester\.netbeans\dev
Comment 3 pribyl 2009-04-09 14:41:10 UTC
Well, I am from QA too :)

Yes, my scenario was exactly the same as yours.
However, I just tried to reproduce this with latest build (200904081400) and it worked correctly. 

I installed the older build again (the one I reported this issue with - 200904020200), and I am able to reproduce
described error. (Each time with new userdir). Strange.

Well, the most important is, that it works now :) Maybe it was fixed by some other fix?
Comment 4 Marian Mirilovic 2009-05-12 11:59:17 UTC
per last comment from Pavel - closing as WORKSFORME
Comment 5 pribyl 2009-05-13 07:27:43 UTC
Thanks, I should do that myself, sorry.

I did not encounter this problem since the original report.