<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hello Kulla Dev Team,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">I am forwarding the below email to match the correct mailing list.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">David Alayachew</b> <span dir="auto"><<a href="mailto:davidalayachew@gmail.com" target="_blank">davidalayachew@gmail.com</a>></span><br>Date: Sun, Jul 14, 2024 at 3:17 PM<br>Subject: JShell bug<br>To:  <<a href="mailto:discuss@openjdk.org" target="_blank">discuss@openjdk.org</a>><br></div><br><br><div dir="ltr"><div style="font-family:monospace">Terribly sorry to post this on discuss, but I could not find which mailing list supports JShell.</div><div style="font-family:monospace"><br></div><div style="font-family:monospace">Attached to this email is text that I had in my clipboard.</div><div style="font-family:monospace"><br></div><div style="font-family:monospace">I started a fresh JShell session, then pasted the text into JShell. It immediately threw the attached stacktrace -- an AssertionError.</div><div style="font-family:monospace"><br></div><div style="font-family:monospace">Here is some relevant info.</div><div style="font-family:monospace"><br></div><div style="font-family:monospace">david@David2 MINGW64 ~/_WORKSPACE/_PROGRAMMING/_JAVA (main)<br>$ jshell --version<br>jshell 23-ea<br><br>david@David2 MINGW64 ~/_WORKSPACE/_PROGRAMMING/_JAVA (main)<br>$ java --version<br>openjdk 23-ea 2024-09-17<br>OpenJDK Runtime Environment (build 23-ea+31-2337)<br>OpenJDK 64-Bit Server VM (build 23-ea+31-2337, mixed mode, sharing)<br></div><div style="font-family:monospace"><br></div><div style="font-family:monospace"><div style="font-family:monospace" class="gmail_default">
Also, it seems like the closing curly brace on the switch expression is 
the real problem. I pasted everything up to and including the default 
line in one shot, then I pasted the trailing empty line, then I pasted 
the curly brace, and then jshell crashed with the same error. <br></div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default"><br></div></div><div style="font-family:monospace"><div style="font-family:monospace" class="gmail_default"></div><div style="font-family:monospace" class="gmail_default">
If I remove all empty newlines and minify the closing curly brace, it 
seems like JShell is happy. Just adding further detail in case it speeds
 up anything.

</div><br></div><div style="font-family:monospace"><br></div><div style="font-family:monospace">Could someone please forward this email and its attachments to the correct mailing list?</div><div style="font-family:monospace"><br></div><div style="font-family:monospace">Thank you for your time and help!</div><div style="font-family:monospace">David Alayachew<br></div></div>
</div></div>