freeCodeCamp / freeCodeCamp/devdocs

Anchor links to methods with generic parameters broken on OpenJDK 8/11

未关闭
#1,868 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Ruby
星标
39.5k
派生
2.6k
平均合并
4 天 32 分钟
30 天内合并 PR
13

描述

# Bug report

## OS information
macOS 12.5.1 / Firefox 106

## Steps to reproduce

* Open https://devdocs.io/openjdk~8/ or https://devdocs.io/openjdk~11/ (versions 17, 18 and 19 work correctly).
* Search for “List.add()” and select the first result.
* Expected: the `List` documentation page opens, with the documentation for the `add` method visible.
* Actual: the `List` documentation page opens, but we see the top of the page and need to scroll manually to the `add` method.

## Possible fix
It looks like id of the method section in the documentation page is `add(java.lang.Object)` instead of `add(E)`. The scraper might need to be fixed.

贡献指南

打开贡献指南

调研方向

Start by reproducing the anchor behavior on the OpenJDK 8 and 11 documentation pages, then compare the generated method IDs with versions 17–19. Inspect the scraper output for List.add and verify that selecting the search result lands on the add method section rather than the top of the page.

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
documentation
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。