--- a/jdk/test/demo/zipfs/ZipFSTester.java Fri Jun 07 14:13:40 2013 -0400
+++ b/jdk/test/demo/zipfs/ZipFSTester.java Fri Jun 07 13:49:37 2013 -0700
@@ -341,6 +341,9 @@
// test file stamp
static void testTime(Path src) throws Exception {
+ BasicFileAttributes attrs = Files
+ .getFileAttributeView(src, BasicFileAttributeView.class)
+ .readAttributes();
// create a new filesystem, copy this file into it
Map<String, Object> env = new HashMap<String, Object>();
env.put("create", "true");
@@ -352,10 +355,6 @@
Path dst = getPathWithParents(fs, "me");
Files.copy(src, dst, COPY_ATTRIBUTES);
checkEqual(src, dst);
-
- BasicFileAttributes attrs = Files
- .getFileAttributeView(src, BasicFileAttributeView.class)
- .readAttributes();
System.out.println("mtime: " + attrs.lastModifiedTime());
System.out.println("ctime: " + attrs.creationTime());
System.out.println("atime: " + attrs.lastAccessTime());