-
Bug
-
Resolution: Fixed
-
P3
-
23
-
b07
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8337383 | 23.0.2 | Jan Lahoda | P3 | Resolved | Fixed | b01 |
JDK-8337926 | 23.0.1 | Jan Lahoda | P3 | Resolved | Fixed | b06 |
JDK-8336703 | 23 | Jan Lahoda | P3 | Resolved | Fixed | b33 |
Please see the original report here:
https://mail.openjdk.org/pipermail/kulla-dev/2024-July/005258.html
JShell may crash on paste on Windows with:
$ jshell
| Welcome to JShell -- Version 23-ea
| For an introduction type: /help intro
jshell> import java.util.Scanner;
jshell>
Exception in thread "main" java.lang.AssertionError: should not reach here
...> at jdk.internal.le/jdk.internal.org.jline.terminal.impl.ffm.Kernel32.ScrollConsoleScreenBuffer(Kernel32.java:241)
...> at jdk.internal.le/jdk.internal.org.jline.terminal.impl.ffm.WindowsAnsiWriter.processDeleteLine(WindowsAnsiWriter.java:394)> public static void main(String[] args) {
...> at jdk.internal.le/jdk.internal.org.jline.utils.AnsiWriter.processEscapeCommand(AnsiWriter.java:300)
...> at jdk.internal.le/jdk.internal.org.jline.utils.AnsiWriter.write(AnsiWriter.java:114)
...> at java.base/java.io.PrintWriter.implWrite(PrintWriter.java:536)
...> at java.base/java.io.PrintWriter.write(PrintWriter.java:528)
...> at java.base/java.io.PrintWriter.append(PrintWriter.java:1374)
...> at java.base/java.io.PrintWriter.append(PrintWriter.java:64)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Curses.doTputs(Curses.java:468)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Curses.tputs(Curses.java:59)
...> at jdk.internal.le/jdk.internal.org.jline.terminal.impl.AbstractTerminal.puts(AbstractTerminal.java:188)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Display.perform(Display.java:370)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Display.deleteLines(Display.java:343)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Display.update(Display.java:167)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:4010)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.doCleanup(LineReaderImpl.java:2601)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2592)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:777)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:512)
...> at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:225)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1295)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1229)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:1014)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:261)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
Caused by: java.lang.invoke.WrongMethodTypeException: handle's method type (MemorySegment,MemorySegment,MemorySegment,MemorySegment,MemorySegment)int but found (MemorySegment,SMALL_RECT,SMALL_RECT,COORD,CHAR_INFO)int
at java.base/java.lang.invoke.Invokers.newWrongMethodTypeException(Invokers.java:521)
at java.base/java.lang.invoke.Invokers.checkExactType(Invokers.java:530)
at jdk.internal.le/jdk.internal.org.jline.terminal.impl.ffm.Kernel32.ScrollConsoleScreenBuffer(Kernel32.java:239)
... 24 more
https://mail.openjdk.org/pipermail/kulla-dev/2024-July/005258.html
JShell may crash on paste on Windows with:
$ jshell
| Welcome to JShell -- Version 23-ea
| For an introduction type: /help intro
jshell> import java.util.Scanner;
jshell>
Exception in thread "main" java.lang.AssertionError: should not reach here
...> at jdk.internal.le/jdk.internal.org.jline.terminal.impl.ffm.Kernel32.ScrollConsoleScreenBuffer(Kernel32.java:241)
...> at jdk.internal.le/jdk.internal.org.jline.terminal.impl.ffm.WindowsAnsiWriter.processDeleteLine(WindowsAnsiWriter.java:394)> public static void main(String[] args) {
...> at jdk.internal.le/jdk.internal.org.jline.utils.AnsiWriter.processEscapeCommand(AnsiWriter.java:300)
...> at jdk.internal.le/jdk.internal.org.jline.utils.AnsiWriter.write(AnsiWriter.java:114)
...> at java.base/java.io.PrintWriter.implWrite(PrintWriter.java:536)
...> at java.base/java.io.PrintWriter.write(PrintWriter.java:528)
...> at java.base/java.io.PrintWriter.append(PrintWriter.java:1374)
...> at java.base/java.io.PrintWriter.append(PrintWriter.java:64)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Curses.doTputs(Curses.java:468)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Curses.tputs(Curses.java:59)
...> at jdk.internal.le/jdk.internal.org.jline.terminal.impl.AbstractTerminal.puts(AbstractTerminal.java:188)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Display.perform(Display.java:370)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Display.deleteLines(Display.java:343)
...> at jdk.internal.le/jdk.internal.org.jline.utils.Display.update(Display.java:167)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:4010)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.doCleanup(LineReaderImpl.java:2601)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2592)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:777)
...> at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:512)
...> at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:225)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1295)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1229)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:1014)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:261)
...> at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
Caused by: java.lang.invoke.WrongMethodTypeException: handle's method type (MemorySegment,MemorySegment,MemorySegment,MemorySegment,MemorySegment)int but found (MemorySegment,SMALL_RECT,SMALL_RECT,COORD,CHAR_INFO)int
at java.base/java.lang.invoke.Invokers.newWrongMethodTypeException(Invokers.java:521)
at java.base/java.lang.invoke.Invokers.checkExactType(Invokers.java:530)
at jdk.internal.le/jdk.internal.org.jline.terminal.impl.ffm.Kernel32.ScrollConsoleScreenBuffer(Kernel32.java:239)
... 24 more
- backported by
-
JDK-8336703 Crash on paste to JShell
- Resolved
-
JDK-8337383 Crash on paste to JShell
- Resolved
-
JDK-8337926 Crash on paste to JShell
- Resolved
- links to
-
Commit(jdk23) openjdk/jdk/0c82e4bf
-
Commit(master) openjdk/jdk/b9b0b850
-
Review(jdk23) openjdk/jdk/20213
-
Review(master) openjdk/jdk/20182
(2 links to)