Console.readLine() drops '\' when reading through JLine

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 25
    • Affects Version/s: 24, 25
    • Component/s: tools
    • None
    • b25

      Using a recent OpenJDK build, having:
      ---
      public class Test {
          public static void main(String... args) {
              System.err.println(System.console().readLine());
          }
      }
      ---
      and running it as:
      ---
      $ ./java /tmp/Test.java
      te\st
      test
      ---

      I.e. the `\` is dropped from the returned value.

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

              Created:
              Updated:
              Resolved: