8215244: jdk/jshell/ToolBasicTest.java testHistoryReference failed

Mark history entries from previous sessions with timestamp that is definitelly in the past.

Reviewed-by: rfield
This commit is contained in:
Jan Lahoda 2019-01-11 10:46:29 +01:00
parent 3c42eaec01
commit ef4cde4a24

View File

@ -185,7 +185,7 @@ class ConsoleIOContext extends IOContext {
it.set(current);
}
historyLoad = Instant.now();
historyLoad = Instant.MIN;
loadHistory.forEach(line -> reader.getHistory().add(historyLoad, line));
in = reader;