RFR: 8361972: Clarify the condition of System.console() about standard input/output [v4]
Stuart Marks
smarks at openjdk.org
Thu Aug 21 18:59:58 UTC 2025
On Thu, 21 Aug 2025 00:37:59 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> This accompanies the fix for [JDK-8361613](https://bugs.openjdk.org/browse/JDK-8361613), which restricts `System.console()` to return a `Console` instance only when both standard input and output are connected to a terminal. The change here is solely a specification clarification and tightening of the `java.io.Console` javadoc to reflect this behavior. We are separating the spec clarification because the fix itself may be backported to prior LTS releases without requiring a Maintenance Review process.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> Reflecting review comments
Marked as reviewed by smarks (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/26299#pullrequestreview-3141928766
More information about the core-libs-dev
mailing list