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

Console should be usable in jshell and other environments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • 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`.

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

              Created:
              Updated:
              Resolved: