possible Scanner input bug in jshell?

Yacobellis, Robert ryacobellis at luc.edu
Mon Dec 28 06:10:02 UTC 2015


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