Possible JShell anomalie

Robert Field robert.field at oracle.com
Fri Nov 11 15:10:12 UTC 2016


Thanks much Matthias for your report.
I have created this bug report:
     https://bugs.openjdk.java.net/browse/JDK-8169595
We will look into fixing this immediately.

Please send any JShell related email to kulla-dev at openjdk.java.net
which I encourage you to join: 
http://mail.openjdk.java.net/mailman/listinfo/kulla-dev

Thanks,
Robert



On 11/10/16 23:58, Matthias Waltenberger wrote:
> 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