langtools/test/tools/javac/api/Sibling.java
changeset 3782 ae62279eeb46
parent 3774 33a6953bed15
child 3890 b53fced26fa4
--- a/langtools/test/tools/javac/api/Sibling.java	Thu Sep 03 18:34:17 2009 -0700
+++ b/langtools/test/tools/javac/api/Sibling.java	Tue Sep 08 11:12:13 2009 -0700
@@ -26,7 +26,6 @@
  * @bug     6399602
  * @summary Verify that files are created relative to sibling
  * @author  Peter von der Ah\u00e9
- * @ignore 6877223 test ignored because of issues with File.toUri on Windows (6877206)
  */
 
 import java.io.File;
@@ -48,10 +47,9 @@
                                                             "foo.bar.baz.Test",
                                                             CLASS,
                                                             sibling);
-        String name =
-            new File("Test.class").getAbsolutePath().replace(File.separatorChar, '/');
-        if (!classFile.toUri().getPath().equals(name))
-            throw new AssertionError("Expected " + name + ", got " +
-                                     classFile.toUri().getPath());
+        File file = new File("Test.class").getAbsoluteFile();
+        if (!classFile.toUri().equals(file.toURI()))
+            throw new AssertionError("Expected " + file.toURI() + ", got " +
+                                     classFile.toUri());
     }
 }