Possible JShell anomalie

Matthias Waltenberger matthias at waltenberger.de
Fri Nov 11 07:58:55 UTC 2016


Hello,

I'm currently testing OpenJDK 9-ea+143 64-bit on a Linux System (CentOS 7).
JShell is awesome, so I'm testing and playing with it.

Now I found a situation where JShell hangs reproducible:
1. Open JShell
2. Paste the following code including line feed after the second line so both should be executed:
final BigDecimal balance = new BigDecimal("1500000")
final BigDecimal repayment = new BigDecimal("0")

or

final BigDecimal balance = new BigDecimal("1500000");
final BigDecimal repayment = new BigDecimal("0");

The first line ("final") causes a warning. After the warning the shell prompt is displayed, but no further input is possible. JShell hangs, can't be stopped with Ctrl-C, the only option is to kill the process on another shell session.

I hope you're able to reproduce this anomalie and maybe report a bug in OpenJDK's bug system as I dont't have an account for it.

Thanks in advance.

Kind regards
Matthias


More information about the jdk9-dev mailing list