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

Revisit java.io.Console specification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23
    • core-libs
    • None

      A few issues with the specification of java.io.Console has been identified:

      - It's not specified whether Console uses stdin and stdout or something else
      - It doesn't specify when clients might want to call flush()
      - The sentence on effects of close() on Console.reader() and Console.writer() is vague
      - readLine and readPassword don't specify that null is returned if end of input is reached *without having transferred any characters*
      - There's no information on system console capabilities in case of redirection
      - There's no information on availability of system console depending on how JVM is started
      - The definition of isTerminal() needs to be clarified

            naoto Naoto Sato
            prappo Pavel Rappo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: