RFR: 8284315: DocTrees.getElement is inconsistent with Elements.getTypeElement [v2]
Hannes Wallnöfer
hannesw at openjdk.org
Thu Feb 26 17:54:25 UTC 2026
On Thu, 26 Feb 2026 17:31:33 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> You are right for the common case where `type` is a parameterized class. But `type` could itself be a type variable, in which case we need to convert it to a class for the member lookup. I'm adding a comment to make the purpose of this clear.
>
> right makes sense
I realized that this use case (type variable with member lookup) was not covered in the test, which was quite the omission, so I added coverage.
I also looked for the other use of this pattern in javadoc but couldn't find it. If you can point me to it I'll have a look.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29547#discussion_r2860478487
More information about the javadoc-dev
mailing list