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 125236 - Move Refactor undo then redo leaves behind file
Summary: Move Refactor undo then redo leaves behind file
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-14 18:21 UTC by tonybeckham
Modified: 2016-07-07 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception report when you try and open left behind file (12.68 KB, text/plain)
2008-01-14 18:37 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-01-14 18:21:30 UTC
System Info:
Product Version: NetBeans IDE 6.0.1 dev (Build 200801140000)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

Problem Description:
If you move a file to another project another using move refactoring then you undo the move then redo the move the file
is moved but also is in the original location.  This causes some other problem once you get to the point of having the
file in two places.  I have noticed that letting the IDE sit for a few minutes, the one that should not be present
finally goes away.

Steps:
1. Create 2 BPEL module projects, "A" and "B"
2. In "A" add new loan sample schema and also a new schmema accepting all default values
3. In "B" create a new schema accepting all values
4. In "B" add a reference to "A"
5. Move Refactor newSchema from "B" to "A" (works as planned)
6. Now select Refactor|Undo move file (move is undone)
7. Select Refactor|Redo move file.  Now newSchema is in both A and B  if you try and open the one in B you get all blank
tabs and NPE.
Comment 1 tonybeckham 2008-01-14 18:37:33 UTC
Created attachment 55048 [details]
Exception report when you try and open left behind file
Comment 2 Martin Balin 2016-07-07 09:57:06 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss