Re: Java under Linux differs from Java under Windows

Bill Gradwohl <[email protected]> Wed, 10 Sep 2003 07:43:00 -0500
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
>>> Gordon Messmer<[email protected]> 09/10/03 01:23AM >>>
That's normal Posix behavior.  The Java documentation notes that the 
behavior of this function is platform dependant:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#renameTo(java.io.File)

As much as Java tries to be platform independant, not every behavior can 
be made consistant across platforms.  The documentation notes where this 
will affect your code.

Which JDK are you using?  I've heard reports of bugs in Java's "nio" 
package, which is the package that is being used for the 
RandomReadWrite.java example.  This could be a bug in the JDK...

==============================

I knew of that reference, but it cautions only when renaming across file systems. What I'm doing is an in place rename - abc to xyz. 

The JDK I'm using is from j2sdk-1_4_1_03-linux-i586-rpm.bin straight from Sun's web site. 

Are you familiar with the book? I've developed lots of errata for it and I could pass it on to you.

Bill Gradwohl
(817) 224-9400 x211
www.ycc.com
SPAMstomper Protected Email