<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hello David,</p>
    <p><br>
    </p>
    <p>Thanks for the report. I've filled:<br>
      <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8336375">https://bugs.openjdk.org/browse/JDK-8336375</a></p>
    <p><br>
    </p>
    <p>Thanks,</p>
    <p>    Jan</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 15. 07. 24 4:57, David Alayachew
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAA9v-_OWMTKUXZ3E2amJjB2xdXbUf4WG-Z+XKOVqNFGvLeKVhA@mail.gmail.com">
      
      <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" moz-do-not-send="true" class="moz-txt-link-freetext">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" moz-do-not-send="true" class="moz-txt-link-freetext">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">
                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>
    </blockquote>
  </body>
</html>