JShell bug

David Alayachew davidalayachew at gmail.com
Sun Jul 14 19:32:56 UTC 2024


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.

On Sun, Jul 14, 2024 at 3:24 PM David Alayachew <davidalayachew at gmail.com>
wrote:

> 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.
>
> Could someone forward this thread and the attachments to the relevant
> mailing list? I have copied those same attachments to this email too.
>
>
> On Sun, Jul 14, 2024 at 3:17 PM David Alayachew <davidalayachew at gmail.com>
> wrote:
>
>> Terribly sorry to post this on discuss, but I could not find which
>> mailing list supports JShell.
>>
>> Attached to this email is text that I had in my clipboard.
>>
>> I started a fresh JShell session, then pasted the text into JShell. It
>> immediately threw the attached stacktrace -- an AssertionError.
>>
>> Here is some relevant info.
>>
>> david at David2 MINGW64 ~/_WORKSPACE/_PROGRAMMING/_JAVA (main)
>> $ jshell --version
>> jshell 23-ea
>>
>> david at David2 MINGW64 ~/_WORKSPACE/_PROGRAMMING/_JAVA (main)
>> $ java --version
>> openjdk 23-ea 2024-09-17
>> OpenJDK Runtime Environment (build 23-ea+31-2337)
>> OpenJDK 64-Bit Server VM (build 23-ea+31-2337, mixed mode, sharing)
>>
>> Could someone please forward this email and its attachments to the
>> correct mailing list?
>>
>> Thank you for your time and help!
>> David Alayachew
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/discuss/attachments/20240714/789cd5a4/attachment.htm>


More information about the discuss mailing list