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

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

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: