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

Incorrect prompt for Console.readLine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 23
    • 22, 23
    • tools
    • None
    • b23

      Consider code like:
      ---
      public class ConsoleTest {
           public static void main(String... args) {
               System.console().readLine("%%s");
           }
      }
      ---

      This should print '%s' as the prompt, but it prints nothing.

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

              Created:
              Updated:
              Resolved: