PatchSet 4387 
Date: 2004/02/02 17:11:36
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath

2004-02-02  Dalibor Topic <[EMAIL PROTECTED]>

        Resynced with GNU Classpath.

        2004-01-21  Jeroen Frijters  <[EMAIL PROTECTED]>

        * gnu/java/io/PlatformHelper.java (isRootDirectory): Fixed, by
        delegating to beginWithRootPathPrefix.

Members: 
        ChangeLog:1.1971->1.1972 
        libraries/javalib/gnu/java/io/PlatformHelper.java:1.2->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1971 kaffe/ChangeLog:1.1972
--- kaffe/ChangeLog:1.1971      Mon Feb  2 17:04:17 2004
+++ kaffe/ChangeLog     Mon Feb  2 17:11:36 2004
@@ -1,5 +1,14 @@
 2004-02-02  Dalibor Topic <[EMAIL PROTECTED]>
 
+        Resynced with GNU Classpath.
+
+       2004-01-21  Jeroen Frijters  <[EMAIL PROTECTED]>
+
+        * gnu/java/io/PlatformHelper.java (isRootDirectory): Fixed, by
+        delegating to beginWithRootPathPrefix.
+
+2004-02-02  Dalibor Topic <[EMAIL PROTECTED]>
+
        Resynced with GNU Classpath.
 
        2004-01-25  Michael Koch  <[EMAIL PROTECTED]>
Index: kaffe/libraries/javalib/gnu/java/io/PlatformHelper.java
diff -u kaffe/libraries/javalib/gnu/java/io/PlatformHelper.java:1.2 
kaffe/libraries/javalib/gnu/java/io/PlatformHelper.java:1.3
--- kaffe/libraries/javalib/gnu/java/io/PlatformHelper.java:1.2 Wed Dec  3 20:19:24 
2003
+++ kaffe/libraries/javalib/gnu/java/io/PlatformHelper.java     Mon Feb  2 17:11:38 
2004
@@ -92,18 +92,8 @@
    */
   public static final boolean isRootDirectory(String path)
   {
-    if (path.equals("/") || path.equals("\\"))
-      return true;
-    
-    if(!isWindows)
-      return false;
-    
-    if (path.length() > 2
-        && path.length() <= 3
-        && Character.isLetter(path.charAt(0)))
-      return true;
-    
-    return false;
+    int len = path.length();
+    return len > 0 && beginWithRootPathPrefix(path) == len;
   }
 
   /**

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to