<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks for this report. I can reproduce this with the suggestions, it does print something that is hidden by user code. I created
<a href="https://bugs.openjdk.org/browse/JDK-8365177">https://bugs.openjdk.org/browse/JDK-8365177</a> with the steps of reproduction, which I can reproduce on a linux machine too.</div>
<div style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: "Calibri Light", "Helvetica Light", sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> compiler-dev <compiler-dev-retn@openjdk.org> on behalf of David Alayachew <davidalayachew@gmail.com><br>
<b>Sent:</b> Thursday, August 7, 2025 1:39 PM<br>
<b>To:</b> compiler-dev <compiler-dev@openjdk.org><br>
<b>Subject:</b> Fwd: jshell has unreadable javadoc on Git Bash</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div>Hello,
<div dir="auto"><br>
</div>
<div dir="auto">Since the kulla dev chat has just been retired, moving my unanswered question here instead. Please see the below thread, or let me know if I should copy paste it for easier reading.</div>
<br>
<br>
<div class="x_gmail_quote x_gmail_quote_container">
<div dir="ltr" class="x_gmail_attr">---------- Forwarded message ---------<br>
From: <strong class="x_gmail_sendername" dir="auto">David Alayachew</strong> <span dir="auto">
<<a href="mailto:davidalayachew@gmail.com">davidalayachew@gmail.com</a>></span><br>
Date: Mon, Jun 2, 2025, 8:57 PM<br>
Subject: Re: jshell has unreadable javadoc on Git Bash<br>
To: <<a href="mailto:kulla-dev@openjdk.org">kulla-dev@openjdk.org</a>><br>
</div>
<br>
<br>
<div dir="auto">
<p dir="ltr">Side note -- the same problem occurs in Commandline too for Windows 10. The only difference is that I can't use Shift+Enter to create the new lines. Instead, I did a .map(somePath -> {, and then pressed enter. The opening curly brace then allowed
my enter to create a new line. After making a few new lines, then trying to press tab on a half-typed method, I got the same, garbled text.</p>
<p dir="ltr"><br>
</p>
<p dir="ltr">And to be clear, they are garbled/interspersed, even on the same line.</p>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Mon, Jun 2, 2025, 8:52 PM David Alayachew <<a href="mailto:davidalayachew@gmail.com" rel="noreferrer noreferrer" target="_blank">davidalayachew@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="auto">Hello <span class="x_gmail_chip x_gmail_plusreply" dir="auto"><a href="mailto:kulla-dev@openjdk.org" rel="noreferrer noreferrer noreferrer" target="_blank" style="color:#15c; text-decoration:underline">@kulla-dev@openjdk.org</a></span><span> ,</span>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>I was using jshell to write some stream code today, and I was doing this in Git Bash on Windows 10.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>I did list.stream(), then used Shift+Enter to create a new line for each method on my stream. Typical builder-style code formatting.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>Then, I pressed Tab in order to see javadoc for one of the methods, and the resulting javadoc was basically illegible. It was a mix of the multi-line stream and the javadoc, jumbled together.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>I think this is a bug? Can something be done to resolve this? Let me know if more information is needed.</span></div>
<div dir="auto"><span><br>
</span></div>
<div dir="auto"><span>Thank you for your time and consideration.</span></div>
<div dir="auto"><span>David Alayachew</span></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>