jdk/test/java/nio/file/Path/CopyAndMove.java
changeset 3065 452aaa2899fc
parent 2057 3acf8e5e2ca0
child 4057 6b1c7ed677cf
--- a/jdk/test/java/nio/file/Path/CopyAndMove.java	Fri Jun 26 18:39:45 2009 -0700
+++ b/jdk/test/java/nio/file/Path/CopyAndMove.java	Sat Jun 27 21:46:53 2009 +0100
@@ -22,7 +22,7 @@
  */
 
 /* @test
- * @bug 4313887
+ * @bug 4313887 6838333
  * @summary Unit test for java.nio.file.Path copyTo/moveTo methods
  * @library ..
  */
@@ -69,9 +69,9 @@
         assertTrue(attrs1.isSymbolicLink() == attrs2.isSymbolicLink());
         assertTrue(attrs1.isOther() == attrs2.isOther());
 
-        // check last modified time (assume millisecond precision)
-        long time1 = attrs1.resolution().toMillis(attrs1.lastModifiedTime());
-        long time2 = attrs1.resolution().toMillis(attrs2.lastModifiedTime());
+        // check last modified time
+        long time1 = attrs1.lastModifiedTime().toMillis();
+        long time2 = attrs2.lastModifiedTime().toMillis();
         assertTrue(time1 == time2);
 
         // check size