Integrated: 8369531: Wrong tooltip used in external class links

Hannes Wallnöfer hannesw at openjdk.org
Wed Nov 26 14:10:05 UTC 2025


On Tue, 25 Nov 2025 14:15:50 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

> Please review a change to use the same title attribute (tooltip) in external class links as in internal ones. 
> 
> Currently, links to external types and their members always use `class or interface in x.y.z` as tooltip. This is unecessarily generic for type links, because we actually know whether it is a class or an interface, and already have the correct tooltip message. For member links, it is misleading because the link target is not the class or interface.
> 
> With this change, external links use the same tooltip as internal ones. Links to top-level types specify whether it is a class or interface. Links to methods use the method signature as tooltip if the link label only contains the method name. For other members, the no tooltip is set. 
> 
> I'm also removing the `doclet.Href_Class_Or_Interface_Title` message because it is not used anymore.

This pull request has now been integrated.

Changeset: 0a3809f0
Author:    Hannes Wallnöfer <hannesw at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0a3809f0be94c92c2c46f00fe5ff981afdd55cf0
Stats:     191 lines in 23 files changed: 6 ins; 20 del; 165 mod

8369531: Wrong tooltip used in external class links

Reviewed-by: liach

-------------

PR: https://git.openjdk.org/jdk/pull/28491


More information about the javadoc-dev mailing list