JDK-8306983 : Do not invoke external programs when switch terminal to raw mode on selected platforms
  • Type: Task
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-04-27
  • Updated: 2025-05-19
  • Resolved: 2023-05-22
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 21
21 b24Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
(On non-Windows platforms:) currently, when jdk.internal.le (which is the JLine 3 library) switches terminal to raw mode, it will call several external programs to do that.

The task herein is to avoid the invocation of external programs on selected platforms by directly invoking the native functions that would switch the terminal.

Comments
Unfortunately this broke the AIX build (see https://bugs.openjdk.org/browse/JDK-8308624 ). The description "avoid the invocation of external programs on selected platforms " sounds like a fallback would be provided on the other platforms than the "selected" ones. But this seems not to be the case.
23-05-2023

Changeset: a9705196 Author: Jan Lahoda <jlahoda@openjdk.org> Date: 2023-05-22 10:39:26 +0000 URL: https://git.openjdk.org/jdk/commit/a9705196cea7d6f468b76b1cfff561352ee0b6b2
22-05-2023

JDK-8308544: Fix compilation regression from JDK-8306983 on musl libc
22-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13687 Date: 2023-04-27 11:21:04 +0000
03-05-2023