Mysterious problem with classgraph javadoc.jar #583
Replies: 2 comments 2 replies
-
@eitan-rosenberg this is pretty interesting, thanks for reporting it... This error
seems to indicate that the browser is being directed to a path in the jar that includes the module name at the beginning of the classfile hierarchy. This is required for Java sources in modular projects. ClassGraph is compiled as a non-modular (traditional classpath) jar -- however after the jar is built, the It seems that Eclipse detects the module descriptor, and therefore assumes that the Javadoc directory structure needs to be modular. I suspect that in general for projects that are built as modules, the Javadoc is written using the modular path structure. I think this is probably an Eclipse bug: Eclipse needs to add a fallback to omit the module name from the beginning of the path and try loading the HTML files again, if the Javadoc cannot be found for the modular path. I'm curious though if there is some required standard here that ClassGraph is not adhering to. Maybe I need to make a complete duplicate of the whole Javadoc tree under the module name... |
Beta Was this translation helpful? Give feedback.
-
@eitan-rosenberg I created a duplicate of the Javadoc at the path |
Beta Was this translation helpful? Give feedback.
-
I am using eclipse (The latest) and as a rule I am using Maven to DL the Javadoc.
The file is downloaded from maven with no problem.
However, using it is a different story...
As can be seen, we see a preview of the class Javadoc.
But if I use the "open attached Javadoc in a browser" I am getting an Error:
java.io.FileNotFoundException: JAR entry io.github.classgraph/io/github/classgraph/ClassGraph.html not found in G:\MyMavenRepo\io\github\classgraph\classgraph\4.8.128\classgraph-4.8.128-javadoc.jar
at java.base/sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:147)
The mystery continue if I look at the properties of the jar:
The jar is valid, and it opens with the browser.
I have other jars in this project and the Javadoc is shown with no problems.
Anyone having the same problem ?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions