Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

In SourceCodeComponentFinderStrategy get rid of com.sun.javadoc.ClassDoc calls #36

Open
Riduidel opened this issue Sep 30, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Riduidel
Copy link
Contributor

Starting with Java 14, the com.sun.javadoc.* classes are no more accessible.
Hopefuly, this can be replaced with usage of JavaParser!

@Riduidel Riduidel added the help wanted Extra attention is needed label Sep 30, 2020
@MLNW
Copy link
Contributor

MLNW commented Feb 26, 2021

It seems to me this or rather a related issue is already present from Java 9 onwards: The documentation states that JAVA_HOME/lib/tools.jar needs to be included in the classpath in order to parse the JavaDoc of classes.

While researching how to do this with Gradle I found this StackOverflow answer stating that the tools.jar was removed with Java 9.
So parsing the JavaDoc currently not possible for anything above Java 8.

Would be nice to get this to work for at least Java 11 since 8 is now ~7 years old and should not be used for new projects.

@Riduidel
Copy link
Contributor Author

Riduidel commented Oct 9, 2021

I know this issue is quite old but, @simonbrowndotje do you think it could be a good idea to replace current implementation, which rely upon com.sun.tools.javadoc.Main by an implementation which uses JavaParser ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants