more info RE: possible Scanner input bug in jshell?
Yacobellis, Robert
ryacobellis at luc.edu
Mon Dec 28 15:24:23 UTC 2015
I should have mentioned this: I'm running Windows 7 Ultimate 64 bit, and I just downloaded the Java 9 jre and jdk yesterday before trying jshell. I've attached a copy of the cmd inputs I typed right up to the point where I press enter in jshell and everything locks up.
From: Yacobellis, Robert
Sent: Monday, December 28, 2015 12:10 AM
To: 'kulla-dev at openjdk.java.net' <kulla-dev at openjdk.java.net>
Subject: possible Scanner input bug in jshell?
Importance: High
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: jshell-input.txt
URL: <http://mail.openjdk.java.net/pipermail/kulla-dev/attachments/20151228/2f795c21/jshell-input.txt>
More information about the kulla-dev
mailing list