You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any of the issues listed above are a duplicate, please consider closing this issue & upvoting/commenting the original one.
Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.
Yeah it seems some commenters on stack overflow are confused about sources vs compiled javadoc as I found plenty of people say that VSCode can display javadoc, while in reality it would just read the manifest and download sources in the background.
Thanks everyone! I guess overall, I found a workaround by mapping sources to binaries. I didn’t know “sources” key mapping existed in the config before I made this ticket. At the same time javadoc jars are still ignored so I don’t know if you want me to close this ticket or keep it open.
Being able to handle binary + javadoc jars without requiring the source jar would be very useful indeed.
I find it surprising that vscode-java doesn't include that possibility.
Situations where you don't want to disclose java sources are frequent.
If people are willing to distribute their sources, I no longer even understand why classes would remain useful to distribute altogether, as well as javadocs.
I am probably missing something.
Is this issue still alive ? That would be great.
Thanks.
Activity
github-actions commentedon Mar 7, 2023
We have found issues that are potential duplicates:
If any of the issues listed above are a duplicate, please consider closing this issue & upvoting/commenting the original one.
Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.
jdneo commentedon Mar 8, 2023
By default, a referenced {binary}.jar will try to search {binary}-sources.jar under the same directory, and attach it as source if one match is found.
If you want to manually specify a JAR file as a source attachment, you can provide a key-value map in the sources field:
In this way, bar-src.jar is attached to bar.jar as its source.
Hexorg commentedon Mar 8, 2023
Yeah it seems some commenters on stack overflow are confused about sources vs compiled javadoc as I found plenty of people say that VSCode can display javadoc, while in reality it would just read the manifest and download sources in the background.
fbricon commentedon Mar 8, 2023
We found it simpler to handle both sources and javadoc from a single (source) jar file.
We could very well add similar support for *-javadoc.jar, but I don't think this will be used that much.
jdneo commentedon Mar 9, 2023
@Hexorg My bad, I misunderstood your problem.
Hexorg commentedon Mar 9, 2023
Thanks everyone! I guess overall, I found a workaround by mapping sources to binaries. I didn’t know “sources” key mapping existed in the config before I made this ticket. At the same time javadoc jars are still ignored so I don’t know if you want me to close this ticket or keep it open.
ddemange commentedon Sep 29, 2026
Being able to handle binary + javadoc jars without requiring the source jar would be very useful indeed.
I find it surprising that vscode-java doesn't include that possibility.
Situations where you don't want to disclose java sources are frequent.
If people are willing to distribute their sources, I no longer even understand why classes would remain useful to distribute altogether, as well as javadocs.
I am probably missing something.
Is this issue still alive ? That would be great.
Thanks.