<div dir="ltr"><div dir="ltr">On Mon, Jun 19, 2023 at 10:49 AM Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com">maurizio.cimadamore@oracle.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">the naming of these methods is unfortunate<br></blockquote><div><br></div><div>Sure; no judgment on my part. Just seeking clarification.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You are correct in pointing out that both `allparams` and <br>
`getTypeArguments` are really about "type arguments" (use site).<br>
<br>
The only difference is that the former only returns the type arguments <br>
of the generic class type (or generic method) it is called on, whereas <br>
the latter will recurse up to the outermost generic type (and return <br>
_all_ the type arguments - this is useful e.g. when performing type <br>
susbtitution).<br></blockquote><div><br></div><div>(I think you have "former" and "latter" confused here? allparams "will recurse up to the outermost generic type…", yes? And "getTypeArguments" "returns the type arguments of the generic class type…it is called on"? Anyway, thank you for the clarification.)</div><div><br></div><div>L</div></div></div>