Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8295803

Console should be usable in jshell and other environments

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • core-libs
    • None
    • b27
    • generic
    • generic

    Description

      Console instance is only available when the JVM is attached to an OS provided interactive console. Otherwise `System.console()` returns `null`. This is not very useful for applications such as `jshell` in which the debugee process is not attached to a console. By providing a plug-in mechanism, custom implementations of Console can be returned with `System.console()` even when it may not be attached to the underlying platform's TTY. This also allows replacing the default Console implementation with functionality-wise better `jline`.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              naoto Naoto Sato
              naoto Naoto Sato
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: