On Fri, 6 Mar 2026 20:13:02 GMT, Chen Liang <[email protected]> wrote:
>> Please review an enhancement that adds a new default `toString` method to >> the `jdk.javadoc.doclet.Taglet` interface which receives the path to the >> documentation root directory as additional argument. >> >> This makes it possible to create correct relative URLs when a tag is >> rendered outside of its element's resource (such as in a summary page), >> which was previously impossible using the public Taglet API. It also makes >> it easier to build relative URLs in the common case where a tag is rendered >> in its element's normal location. > > Can we remove the hack used by JSpec taglet as a POC of this new API? Or do > you plan to do in a later RFE? @liach I've filed a separate issue [JDK-8379520](https://bugs.openjdk.org/browse/JDK-8379520) for the Taglet cleanup, but I'm adding the changes to this PR as I think it's good to see the new API in use. I can move it to a separate PR if necessary. ------------- PR Comment: https://git.openjdk.org/jdk/pull/30120#issuecomment-4024818429
