8215244: jdk/jshell/ToolBasicTest.java testHistoryReference failed
authorjlahoda
Fri, 11 Jan 2019 10:46:29 +0100
changeset 53280 f152abfd2751
parent 53279 6b37a7ba9b66
child 53281 672b629e1f72
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
src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
--- 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;