[Bluej-discuss] Backup file error messages
Davin McCall
davmac at bluej.org
Thu Sep 13 04:01:52 BST 2007
Hedley,
Thanks for the detailed instructions. I've been able to reproduce the
problem, but it only happens on Windows and not on Mac OS X or linux
(the two environments which I mostly use myself).
In short, it's a BlueJ bug. When BlueJ renames the "*.java#" file to
"*.java~" it uses the File.renameTo() method, which (on Windows only)
fails if the destination file already exists, that is, if the backup
file already exists. So in this case, the crash file is not renamed and
is still present the next time you open BlueJ (which causes the warning
message to be displayed).
I'll put in a fix for the next release,
Thanks again
Davin
Hedley Finger wrote:
> Michael (Davin?):
>
> At Friday, 17/08/2007, 11:00 AM;, you wrote:
>
>> This process somehow seems to be implicated in continual error
>> messages along the lines of "BlueJ [or Java] has crashed and backup
>> files are missing" or somesuch whenever I open a class in the code
>> editor. The source files appear to have the following possible file
>> extensions: fileName.java, fileName.java#, fileName.java#backup, and
>> fileName.java~. Can someone enlighten me as to what these file
>> extensions represent and give me a clue as to why I keep getting
>> this annoying message. (If the file is closed and immediately
>> reopened in the editor, the message does not appear the second and
>> subsequent occasions.)
>>
>
> I seem to have mislaid your reply to this message.
>
> I conducted the following experiment:
>
> 1 Set up a new test project from scratch.
>
> 2 Turn the backup files preference OFF.
>
> 3 Make a new class. Change a method and compile.
>
> 4 Add another method and compile, then quit BlueJ.
>
> Only a *.java file created.
>
> 5 Turn the backup files preference ON.
>
> 6 Make another class, change a method and compile.
>
> 7 Add another method and compile, then quit BlueJ.
>
> Created *.java, *.java# and *.java~ files. Then the *.java#
> file became *.java#backup! Possibly Windows Explorer slow in refreshing.
>
> 8 Launch BlueJ again and double-click on the last class.
>
> Error message about BlueJ crashing appears.
>
> I often Quit all projects, leaving it to BlueJ to save files before
> it exits. Could this be somehow different from saving each project
> before quitting?
>
> Regards,
> Hedley
>
>
> --
> Hedley Stewart Finger
> 28 Regent Street Camberwell VIC 3124 Australia
> Tel. +61 3 9809 1229 Mobile +61 412 461 558,
> E-mail <mailto:hfinger at handholding.com.au>
>
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20070913/76351e7b/attachment.html
More information about the bluej-discuss
mailing list