Revisit java.io.Console specification

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 23
    • Component/s: 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

            Assignee:
            Naoto Sato
            Reporter:
            Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: