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 75769 - [SafeDelete] Undo after 2nd safe delete do not restore contents of class
Summary: [SafeDelete] Undo after 2nd safe delete do not restore contents of class
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 85212 (view as bug list)
Depends on: 48427
Blocks:
  Show dependency tree
 
Reported: 2006-05-02 11:08 UTC by Jiri Prox
Modified: 2007-04-03 18:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (26.48 KB, text/plain)
2006-05-02 11:08 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-05-02 11:08:06 UTC
NB 5.5 200605020200
JDK 1.6.0 b81

The content of .java file is not restored upon performing safe delete & UNDO
twice in row

Steps to reproduce:
1) crete new project
2) select node corresponding to Main.java file
3) call safe delete
4) Undo safe delete
5) call safe delete again
6) undo
 -> file is restored, but it is empty
 -> several informational exceptions in log
Comment 1 Jiri Prox 2006-05-02 11:08:35 UTC
Created attachment 30157 [details]
messages.log
Comment 2 _ bharathch 2006-06-06 14:17:37 UTC
Fixed as part of resolution for issue 72786.
File modified:SafeDeleteElement.java 
(Private method writeToFile was modified. That modification fixes this issue.)
Comment 3 Jiri Prox 2006-07-14 14:51:17 UTC
verified
Comment 4 Jiri Prox 2006-09-19 10:52:09 UTC
*** Issue 85212 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Prox 2006-09-19 10:53:06 UTC
Occured again in #200609190300

Comment 6 Jan Becicka 2007-01-17 19:31:15 UTC
Fixed.
Comment 7 Jiri Prox 2007-03-26 12:26:03 UTC
verified