aboutcode-org / aboutcode-org/scancode.io

Detect properly multiple Java classes bundled in a single Java file

Abierto
#1,677 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug low priority
Lenguaje dominante
Python
Estrellas
215
Forks
203
Merge medio
4 d 8 h
PR fusionados (30 d)
6

Descripción

**Describe the bug**

Pipeline `map_deploy_to_develop` for Java with inputs from:
- https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/3.2.0/caffeine-3.2.0-sources.jar#from
- https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/3.2.0/caffeine-3.2.0.jar#to

... fails to map:
- class `com/github/benmanes/caffeine/cache/BaseMpscLinkedArrayQueueConsumerFields.class`
- to source https://github.com/ben-manes/caffeine/blob/8ddc0a0b971e10a428facd45c86156664d8ba394/caffeine/src/main/java/com/github/benmanes/caffeine/cache/MpscGrowableArrayQueue.java#L158

Notes:
- `BaseMpscLinkedArrayQueueConsumerFields` is one of many classes in `MpscGrowableArrayQueue`
- `BaseMpscLinkedArrayQueueConsumerFields.class` bytecode has a pointer to its source file with "SourceFile MpscGrowableArrayQueue.java" references

**To Reproduce**

Pipeline `map_deploy_to_develop` for Java with inputs from:
- https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/3.2.0/caffeine-3.2.0-sources.jar#from
- https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/3.2.0/caffeine-3.2.0.jar#to

Check relationships and see `BaseMpscLinkedArrayQueueConsumerFields.class` is missing source code, but it is not.

**Expected behavior**

Mapping should be done

**Screenshots**

![Image](https://github.com/user-attachments/assets/9a8fedc4-f643-443d-b61c-f5ddf66da523)
![Image](https://github.com/user-attachments/assets/c71cc595-c541-49e2-aab9-059c4bb4366b)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.