Console should be usable in jshell and other environments

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: core-libs
    • None
    • b27
    • generic
    • generic

      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`.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: