java-extensions icon indicating copy to clipboard operation
java-extensions copied to clipboard

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

Open Riduidel opened this issue 5 years ago • 2 comments

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

Riduidel avatar Sep 30 '20 19:09 Riduidel

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.

MLNW avatar Feb 26 '21 09:02 MLNW

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 ?

Riduidel avatar Oct 09 '21 16:10 Riduidel