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

Using Ctrl+D shortcut to exit JShell prints a stacktrace

XMLWordPrintable

    • b24
    • 12
    • x86_64
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      openjdk full version "12-ea+24"

      A DESCRIPTION OF THE PROBLEM :
      Using Ctrl+D shortcut to exit JShell prints a stacktrace, instead of just exiting JShell as it used to do. This regression is most likely caused by JDK-8214491, which was resolved in b24

      REGRESSION : Last worked in version 11.0.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      open JShell and press Ctrl+D

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      JShell exits without printing anything
      ACTUAL -
      JShell prints the following stacktrace and then exits:
      Exception in thread "main" jdk.internal.org.jline.reader.EndOfFileException
              at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:564)
              at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:404)
              at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:200)
              at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1238)
              at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1174)
              at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975)
              at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254)
              at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)

      FREQUENCY : always


            rfield Robert Field (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: