Integrated: 8332858: References with escapes have broken positions after they are transformed
Jan Lahoda
jlahoda at openjdk.org
Fri May 31 05:57:07 UTC 2024
On Fri, 24 May 2024 09:05:20 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> If the javadoc comment contains a (Markdown) link like:
>
> [java.util.Arrays#asList(Object[])]
>
>
> The transformer that converts this link into the Javadoc link will not find the reference, as it is looking for `java.util.Arrays#asList(Object[])` (note the missing escapes), which is not present in the original text.
>
> This patch tries to fix that by permitting optional escapes for all escapable character when searching for the reference, in case the literal search fails. This is done using regexp, although could presumably be done using a manual search.
This pull request has now been integrated.
Changeset: 2ab8ab56
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2ab8ab56130ca258bf0347ea44e74a8cad3d537d
Stats: 72 lines in 2 files changed: 66 ins; 0 del; 6 mod
8332858: References with escapes have broken positions after they are transformed
Reviewed-by: vromero, jjg
-------------
PR: https://git.openjdk.org/jdk/pull/19387
More information about the compiler-dev
mailing list