Index: java/io/File.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/io/File.java,v retrieving revision 1.21 diff -u -r1.21 File.java --- java/io/File.java 29 Nov 2002 18:41:04 -0000 1.21 +++ java/io/File.java 12 Feb 2003 21:24:53 -0000 @@ -331,8 +331,8 @@ if (path == null) throw new NullPointerException("File name is null"); - if (!PlatformHelper.isRootDirectory(path)) - while (PlatformHelper.endWithSeparator(path)) + while (!PlatformHelper.isRootDirectory(path) + && PlatformHelper.endWithSeparator(path)) path = PlatformHelper.removeTailSeparator(path); }