aboutcode-org / aboutcode-org/scancode.io

Detect properly multiple Java classes bundled in a single Java file

Đang mở
#1,677 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug low priority
Ngôn ngữ chính
Python
Star
215
Fork
203
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
6

Mô tả

**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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.