Re: Jigsaw on Macintosh

Jeff Dripps writes:
 > [about renameTo]
 > I added a couple of newbie error checks to your suggested test code
 > (below), changed 'from.rename' to 'from.renameTo', (which is what I think
 > you meant) and ran it. Assuming that the source (from) file should be
 > present and the destination (to) file should not be, the output each time
 > was: 'rename "one" to "two" failed !' and I was never able to rename a
 > file. I tried specifying full paths, file name only, all to no avail.
 > 
 > Does this mean that the File rename method in the Java runtime on mac is
 > broken? Geez I hope not!
 > 
 > If so, could you provide a sample of just how this could be overcome? i.e.,
 > would I need to extend the File class in order to add a new ReNameTo
 > method, then recompile Jigsaw using the new renamew method?? Any help
 > appreciated.

Hum, that looks like a definitve bug to me, which is worth submitting
to Sun ;-) I don't know how you can overcome these, you can grep
renameTo in jigsaw sources, and try to get rid of them (most of the
renameTo are done to avoid some unlikely to happen in small env
contention).

Anselm.

Received on Tuesday, 9 July 1996 12:53:53 UTC