possible Scanner input bug in jshell?
Robert Field
robert.field at oracle.com
Wed Dec 30 04:28:02 UTC 2015
Thanks for reporting this. It is a known issue that System.in does not
work:
https://bugs.openjdk.java.net/browse/JDK-8131023?filter=25683
It is possible that the current work inter-process communication issues
(see the other issue you sent) may provide an avenue for addressing
this. In the end, I have re-assigned and raised the priority.
Thanks,
Robert
On 12/27/15 22:10, Yacobellis, Robert wrote:
> Greetings,
>
> I was trying out jshell by printing a prompt to the console and then using a Scanner attached to System.in to read from the keyboard, all in a Windows cmd window. The output works fine, but jshell appears to hang up when doing a Scanner nextLine() method - CTRL-C and CTRL-Z don't interrupt this, so at this point I have to close the cmd window manually.
>
> Is this expected behavior, that Scanner(System.In).nextLine() doesn't connect to keyboard input, or is there something else that I should be doing to make this work?
>
> Thanks,
> Dr. Robert (Bob) Yacobellis
> Loyola University Chicago Computer Science Department
More information about the kulla-dev
mailing list