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!)

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

Commit messages:
 - Test fix provided by @lahodaj
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/23993/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23993&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8351435
  Stats: 113 lines in 9 files changed: 55 ins; 8 del; 50 mod
  Patch: https://git.openjdk.org/jdk/pull/23993.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23993/head:pull/23993

PR: https://git.openjdk.org/jdk/pull/23993

Reply via email to