changeset 53280:f152abfd2751

8215244: jdk/jshell/ToolBasicTest.java testHistoryReference failed Summary: Mark history entries from previous sessions with timestamp that is definitelly in the past. Reviewed-by: rfield
author jlahoda
date Fri, 11 Jan 2019 10:46:29 +0100
parents 6b37a7ba9b66
children 672b629e1f72
files src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Fri Jan 11 09:37:31 2019 +0100
+++ b/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Fri Jan 11 10:46:29 2019 +0100
@@ -185,7 +185,7 @@
             it.set(current);
         }
 
-        historyLoad = Instant.now();
+        historyLoad = Instant.MIN;
         loadHistory.forEach(line -> reader.getHistory().add(historyLoad, line));
 
         in = reader;