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

Summary: [SafeDelete] Undo after 2nd safe delete do not restore contents of class
Product: editor Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: VERIFIED FIXED    
Severity: blocker CC: jbecicka
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 48427    
Bug Blocks:    
Attachments: messages.log

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