JDK-8361972 : Clarify the condition of System.console() about standard input/output
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2025-07-11
  • Updated: 2025-09-03
  • Resolved: 2025-08-26
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 26
26 b13Fixed
Related Reports
CSR :  
Relates :  
Description
JDK-8361613 restricts the Console implementations to return the instance from System.console() only when both standard input and output are attached to the terminal. It is desirable to clarify the java.io.Console specification about the restriction
Comments
Changeset: 69645fd4 Branch: master Author: Naoto Sato <naoto@openjdk.org> Date: 2025-08-26 21:51:32 +0000 URL: https://git.openjdk.org/jdk/commit/69645fd4ba5c0a7e20727f5d85d87cefc40e8c70
26-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26299 Date: 2025-07-14 17:15:57 +0000
14-07-2025