aboutcode-org / aboutcode-org/scancode.io

Detect properly multiple Java classes bundled in a single Java file

オープン
#1,677 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug low priority
主要言語
Python
スター
215
フォーク
203
平均マージ
4日 8時間
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。