[Arakhnę-Dev] [36] Bug fix: do use the absolute path of a File when splitting it.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 36
Author:   galland
Date:     2009-03-05 15:06:11 +0100 (Thu, 05 Mar 2009)

Log Message:
-----------
Bug fix: do use the absolute path of a File when splitting it.

Modified Paths:
--------------
    trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java


Modified: trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java
===================================================================
--- trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java	2009-02-20 15:25:23 UTC (rev 35)
+++ trunk/arakhneVmutils/java/src/main/java/org/arakhne/vmutil/FileSystem.java	2009-03-05 14:06:11 UTC (rev 36)
@@ -199,7 +199,7 @@
 	 */
 	public static String[] split(File filename) {
 		if (filename==null) return new String[0];
-		return split(filename.getAbsolutePath());
+		return split(filename.getPath());
 	}
 
 	/** Join the parts of a path with the current OS directory separator.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/