When there is an error during saving, original file is lost.
|Reported by:||anonymous||Owned by:||team|
|Version:||tested||Keywords:||save file java7|
Josm semms to only save over the file when saving (opening a new FileOutputStream to the file).
The right thing to do would be create a new temporary file and move the temporary file AFTER successfully writing the data over to the position of the old file (File.renameTo(..))
Just a few minutes for a core developer, but could save hours of work ;-)