RFR: 8295803: Console should be usable in jshell and other environments [v8]

Naoto Sato naoto at openjdk.org
Tue Dec 6 18:01:27 UTC 2022

> This is to allow Console to be used even when it is not attached to the platform provided terminal, such as the case when the standard input is redirected. `System.console()` now returns a Console implementation based on `jdk.internal.le` terminal by default, or jshell implementation if available. A corresponding CSR has been drafted.

Naoto Sato has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 22 additional commits since the last revision:

 - Addressing review comments
 - Merge branch 'master' into JDK-8295803-PluginConsole
 - Fixed the copyright year
 - oleole -> ole
 - Addressing review comments.
 - Changed the expected behavior when the SecurityManager is enabled
 - Added more tests, loading with doPrivileged()
 - Adds a test
 - Removed JavaIOAccess.charset() which is no longer needed
 - Minor fixup
 - ... and 12 more: https://git.openjdk.org/jdk/compare/ce6f50f2...204690cf


  - all: https://git.openjdk.org/jdk/pull/11421/files
  - new: https://git.openjdk.org/jdk/pull/11421/files/8b6859ed..204690cf

 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11421&range=07
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11421&range=06-07

  Stats: 47908 lines in 1086 files changed: 19444 ins; 21552 del; 6912 mod
  Patch: https://git.openjdk.org/jdk/pull/11421.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11421/head:pull/11421

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

More information about the security-dev mailing list