-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
12
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 byJDK-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
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
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
- duplicates
-
JDK-8215438 jshell tool: Ctrl-D causes EOF
- Closed