From a086f8892bda0ba731c61a47a95f12f23bc26562 Mon Sep 17 00:00:00 2001 From: sendaoYan Date: Wed, 9 Oct 2024 13:57:04 +0800 Subject: [PATCH] Use System.err.println instead of System.out.println in line 80 of test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java --- .../nio/file/attribute/BasicFileAttributeView/CreationTime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java b/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java index 3a5c7408375a6..65e801b0a9f35 100644 --- a/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java +++ b/test/jdk/java/nio/file/attribute/BasicFileAttributeView/CreationTime.java @@ -77,7 +77,7 @@ static void test(Path top) throws IOException { FileTime creationTime = creationTime(file); Instant now = Instant.now(); if (Math.abs(creationTime.toMillis()-now.toEpochMilli()) > 10000L) { - System.out.println("creationTime.toMillis() == " + creationTime.toMillis()); + System.err.println("creationTime.toMillis() == " + creationTime.toMillis()); System.err.println("File creation time reported as: " + creationTime); throw new RuntimeException("Expected to be close to: " + now); }