<div dir="ltr">Chen,<div>Thank you for your reply.</div><div>I am unable to find ant in cygwin64</div><div><br></div><div>anilr@ANIL-LAPTOP /cygdrive/c/users/anil/OpenJDK/jdk<br>$ bin/idea.sh<br>FATAL: cannot find ant. Try setting ANT_HOME.<br></div><div><br></div><div>When I run setup, I don't see it at all.</div><div><br></div><div><br></div><div><img src="cid:ii_lyz13lhs0" alt="image.png" width="472" height="325"><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 21, 2024 at 6:46 PM Chen Liang <<a href="mailto:liangchenblue@gmail.com">liangchenblue@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Please refer to the "Intellij Idea" section on the ide doc: <a href="https://github.com/openjdk/jdk/blob/master/doc/ide.md#intellij-idea" target="_blank">https://github.com/openjdk/jdk/blob/master/doc/ide.md#intellij-idea</a><div>In short, in `jdk`, you need to run the `bin/idea.sh` with cygwin after you've done `make images` once. Then the root `jdk` directory will be recognized by idea as an idea project.</div><div><br></div><div>Note that the guide asks to set the SDK to your images/jdk in the project. Due to problems within Intellij, you should unset the JDK, so the files won't show up a "package xxx already exists in java.base" error.</div><div>You should set the language level to `X-Experimental features` to mute the warnings about some API usages.</div><div>And then, you can navigate JDK code as in any other project, such as double-shift and search `Stream` to find the `java.util.stream.Stream` class.</div><div>And once you are there, you may encounter the bug I've described, that actually used methods will appear as "unused": you will have to type something in one of the method names, like change `filter` to `filter1` so Intellij idea does a reindex and you can find usages of other methods/overrides of the interface.</div><div><br></div><div>Regards, liach</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 21, 2024 at 2:23 PM Anil <<a href="mailto:1dropaflame@gmail.com" target="_blank">1dropaflame@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Chen,<div>Thanks for your reply.</div><div>Yes, I am using IntelliJ Community Edition (on Windows 11, Cygwin64).</div><div>I did not set up the project - I just opened the package in IJ </div><div>C:\Users\Anil\OpenJDK\jdk\src\java.base\share\classes\java\util\stream<br></div><div>Is there something different I should be doing?</div><div>thanks,</div><div>Anil</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 20, 2024 at 10:39 PM Chen Liang <<a href="mailto:liangchenblue@gmail.com" target="_blank">liangchenblue@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr">Hi Anil, are you using intellij and setting up the project with idea.sh?<br>
Idea has a bug where its indexing breaks completely; you need to type something in the code, like a typo in method name, to force it to refresh.</p>
<br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 20, 2024, 9:45 PM Anil <<a href="mailto:1dropaflame@gmail.com" target="_blank">1dropaflame@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I had a small idea on debugging of streams and was trying to implement it to see if it works.</div><div>I am able to build the OpenJDK (on Windows 11, Cygwin64).</div><div>However, I am unable to find the implementing class of java.util.Stream.</div><div>Can you please help?</div><div>thanks,</div><div>Anil Philip</div><div><br></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>