freeCodeCamp / freeCodeCamp/devdocs
Anchor links to methods with generic parameters broken on OpenJDK 8/11
- Lingua principale
- Ruby
- Stelle
- 39.5k
- Fork
- 2.6k
- Merge medio
- 4g 32m
- PR unite (30g)
- 13
Descrizione
# 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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- documentation
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100