JDK-8351435 : Change the default Console implementation back to the built-in one in `java.base` module
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2025-03-07
  • Updated: 2025-03-31
  • Resolved: 2025-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 masterFixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8351576 :  
Description
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.
Comments
Changeset: 42477442 Branch: master Author: Naoto Sato <naoto@openjdk.org> Date: 2025-03-31 16:46:57 +0000 URL: https://git.openjdk.org/jdk/commit/4247744266c7885dde52977de7646f766a9ad043
31-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23993 Date: 2025-03-11 18:32:10 +0000
11-03-2025