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

Java 12.0.1 jshell doesn't work well on Windows 10

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 12.0.1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Environment:

      C:\Users\lukas>"\Program Files\Java\jdk-12.0.1\bin\jshell.exe" -version
      jshell 12.0.1

      C:\Users\lukas>ver
      Microsoft Windows [Version 10.0.17134.706]

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_10

      Description

      When using jshell from Java 12.0.1 on Windows 10, I cannot easily work with the command history by using the up/down arrows. This is best shown using a screencast of my command prompt.:

      https://i.imgur.com/nu6aa5R.gifv

      After entering the "var i = 1;" command, I'm trying to repeat that command by simply hitting the up arrow key on my machine. It then displays random characters (first "a", then "OA"). Once I delete those characters, I can access the actual commands I executed previously.

        Attachments

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              leder Lukas Eder
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: