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.
Steps to reproduce: ------------------- 1) open XML, Java, ... document in the Source Editor 2) apply some patch on the document The document's file is changed on the disc but old version remains in the Source Editor. When you edit the document and save it, patch's changes are lost.
Scheduling for 4.0. Please do not use the "current" version, it's a useless information after some time.
Fixed in the main trunk. It was necessary to properly close the streams after FileUtil.copy() and also refresh the FileObject after successfull application of the patch. /cvs/diff/src/org/netbeans/modules/diff/PatchAction.java,v <-- PatchAction.java new revision: 1.6; previous revision: 1.5 /cvs/diff/src/org/netbeans/api/diff/StreamSource.java,v <-- StreamSource.java new revision: 1.3; previous revision: 1.2
Verified in development build #200211131011 of NetBeans 4.0.
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be integrated into release341 one branch. The plan at http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be produced on Dec01. That did not happen due to a lot of outstanding not integrated candidates like this one. Would it be possible to spend few minutes by backporting this fix? Thank you in advance.
Merged into release341 branch. /cvs/diff/src/org/netbeans/api/diff/StreamSource.java,v <-- StreamSource.java new revision: 1.2.38.1; previous revision: 1.2 /cvs/diff/src/org/netbeans/modules/diff/PatchAction.java,v <-- PatchAction.java new revision: 1.5.28.1; previous revision: 1.5
Resolved for 3.3.x or earlier, no new info since then -> closing.