freeCodeCamp / freeCodeCamp/devdocs

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

Ouverte
#1,868 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Ruby
Étoiles
39.5k
Forks
2.6k
Merge moyen
4 j 32 min
PR mergées (30 j)
13

Description

# 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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
documentation
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.