RFR: 8308591: JLine as the default Console provider

Alan Bateman alanb at openjdk.org
Mon Jul 17 14:20:23 UTC 2023


On Thu, 1 Jun 2023 18:53:21 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> This is to bring the JLine-based Console implementation as the default, which was the initial intention in [JDK-8295803](https://bugs.openjdk.org/browse/JDK-8295803). A corresponding CSR has also been drafted.

This looks quite good. I think Console::isTerminal works as a method name but we might have to iterate a bit on the javadoc to more clearly define it.

For the CSR I think the behavior change to call out is that System::console will return a Console for cases where it didn't previously (at least not by default) and that will be observed by code that assumes non-null means isatty, cue the new method to provide a standard way to test this.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14271#issuecomment-1638243162


More information about the core-libs-dev mailing list