RFR: JDK-8202105: jshell tool: on exiting, terminal echo is disabled

Martin Buchholz martinrb at google.com
Wed Apr 25 20:47:15 UTC 2018

On Wed, Apr 25, 2018 at 1:34 PM, Jan Lahoda <jan.lahoda at oracle.com> wrote:

> IIRC the call to System.console() in jshell/jline that is part of this
> problem is basically a way to call Console.istty() - the returned Console
> is not used. I was considering tweaking jshell to avoid this issue, and I
> think it would be possible, but seemed some other programs might run into
> issues as well, so seemed better to fix in Console.

So the shutdown hook is unneeded both by Emacs users and by JShell users,
strengthening the case for optimizing it away.

More information about the core-libs-dev mailing list