<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hah!</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">And JShell confirms you are right! The following is valid code!</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">jshell> Gatherer.Integrator.Greedy.Greedy.Greedy.Greedy.Greedy.class<br>$2 ==> interface java.util.stream.Gatherer$Integrator$Greedy</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Nov 17, 2025 at 10:34 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com">chen.l.liang@oracle.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 class="msg-480393421465324562">
<div dir="ltr">
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi David, I believe this is intentional - Greedy has itself inherited as an accessible nested class, because Greedy inherits itself from Integrator.</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Try using this class literal in JShell:</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Gatherer.Integrator.Greedy.Greedy.class</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
You will find this resolves to the Gatherer.Integrator.Greedy class. So I believe javadoc is correct as it reflects actual language behavior.</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
The behavior is similar for other nested interfaces which extend their enclosing interface, such as PrimitiveIterator.OfInt.</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Chen</div>
<div id="m_-480393421465324562appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-480393421465324562divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> javadoc-dev <<a href="mailto:javadoc-dev-retn@openjdk.org" target="_blank">javadoc-dev-retn@openjdk.org</a>> on behalf of David Alayachew <<a href="mailto:davidalayachew@gmail.com" target="_blank">davidalayachew@gmail.com</a>><br>
<b>Sent:</b> Monday, November 17, 2025 9:25 PM<br>
<b>To:</b> <a href="mailto:javadoc-dev@openjdk.org" target="_blank">javadoc-dev@openjdk.org</a> <<a href="mailto:javadoc-dev@openjdk.org" target="_blank">javadoc-dev@openjdk.org</a>><br>
<b>Subject:</b> Bug -- Nested Class box doesn't look like it belongs</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div style="font-family:monospace">Hello <a id="m_-480393421465324562x_plusReplyChip-3" href="mailto:javadoc-dev@openjdk.org" target="_blank">@javadoc-dev@openjdk.org</a>,</div>
<div style="font-family:monospace"><br>
</div>
<div style="font-family:monospace">Please look at the following Javadoc. Compare the "Nested Class Summary" sections between them.</div>
<div style="font-family:monospace">
<div style="font-family:monospace"><br>
</div>
<div style="font-family:monospace"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/stream/Gatherer.Integrator.html" target="_blank">https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/stream/Gatherer.Integrator.html</a></div>
<div style="font-family:monospace"><br>
</div>
</div>
<div style="font-family:monospace"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/stream/Gatherer.Integrator.Greedy.html" target="_blank">https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/stream/Gatherer.Integrator.Greedy.html</a></div>
<br>
<div style="font-family:monospace">There should not be a box for nested class summary for the Greedy one, right? That looks wrong, especially when compared to Integrator.</div>
<div style="font-family:monospace"><br>
</div>
<div style="font-family:monospace">And I think it is Javadoc's fault because there is nothing I can see in the source code that would trigger this behaviour.</div>
<div style="font-family:monospace"><br>
</div>
<div style="font-family:monospace">Am I mistaken?</div>
<div style="font-family:monospace"><br>
</div>
<div style="font-family:monospace">Thank you for your time and consideration.</div>
<div style="font-family:monospace">David Alayachew</div>
</div>
</div>
</div>
</div></blockquote></div>