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

Calling readLine(null...) or readPassword(null...) on System.console() hangs jshell

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 23
    • 23
    • tools
    • None
    • b26

      After this input, jshell hangs:

      jshell> System.console().readLine(null)

      The result of such a call should be NPE as per Console class-level specification.

            jlahoda Jan Lahoda
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: