diff -r f0c186d76c8a -r 80e42e2d475b langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java --- a/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java Wed Jun 08 00:32:31 2016 -0700 +++ b/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java Thu Jun 09 14:20:11 2016 +0200 @@ -215,6 +215,7 @@ } catch (Exception ex) { throw new IOException(ex); } + input.shutdown(); } private void bind(String shortcut, Object action) {