hg: jdk9/sandbox/langtools: 8167461: jshell tool: Scanner#next() hangs tool
chris.hegarty at oracle.com
chris.hegarty at oracle.com
Tue Oct 18 14:16:07 UTC 2016
Changeset: 0a91e3198c97
Author: jlahoda
Date: 2016-10-18 16:00 +0200
URL: http://hg.openjdk.java.net/jdk9/sandbox/langtools/rev/0a91e3198c97
8167461: jshell tool: Scanner#next() hangs tool
Summary: PipeInputStream.read(byte[]...) should only read available bytes; properly resending exceptions for snippet's System.in and properly closing it; more reliable way to cancel user input while waiting in System.in.
Reviewed-by: rfield
! src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
! src/jdk.jshell/share/classes/jdk/internal/jshell/tool/IOContext.java
! src/jdk.jshell/share/classes/jdk/jshell/JShell.java
! src/jdk.jshell/share/classes/jdk/jshell/execution/PipeInputStream.java
! src/jdk.jshell/share/classes/jdk/jshell/execution/Util.java
! test/jdk/jshell/KullaTesting.java
+ test/jdk/jshell/PipeInputStreamTest.java
! test/jdk/jshell/UserInputTest.java
More information about the jdk9-sandbox-changes
mailing list