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

System.console().readLine() hangs in jshell

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 20
    • 20
    • tools
    • None
    • b28
    • generic
    • generic

        Now that Console defaults to jline implementation and `System.console()` returns it, jshell needs to either disable `jline` implementation by specifying `-Djdk.console=java.base` in the launcher command argument, or implement its own JdkConsole. Since it is past RDP1 for JDK20, the former solution is doable in JDK20.

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

                Created:
                Updated:
                Resolved: