RFR: 8351435: Change the default Console implementation back to the built-in one in `java.base` module [v2]

Naoto Sato naoto at openjdk.org
Mon Mar 31 16:50:19 UTC 2025


On Wed, 12 Mar 2025 17:02:01 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> JDK has been using JLine based Console implementation, in JDK20 as opt-in, then in JDK22 as the default. While it has been providing rich functionality for Console, it is increasingly difficult to maintain as a Console implementation. In light of the on-ramp feature (https://bugs.openjdk.org/browse/JDK-8344699), which proposes switching `java.lang.IO` class to use `System.in` and `System.out` instead of Console, reverting the default Console implementation to JDK's built-in one in the java.base module is considered desirable. Some tests are modified along with this change, among them test/jdk/java/io/Console/ConsolePromptTest.java changes were contributed by @lahodaj (thanks!)
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Reflects review comment

Thanks for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/23993#issuecomment-2766805487


More information about the core-libs-dev mailing list