intellij keeps decompiling 3rd party lib instead of showing javadoc

Answered

intellij keeps decompiling 3rd party lib that I added to my project in spite of having followed the instructions on how to add a jar containing javadoc.

I have a 'libs directory' with the 3rd party jar and in Project Structure / Libraries the library and associated javadoc jar. Whenever I jump to the declaration of a class of that 3rd party lib I'm taken to the decompiled class instead of its javadoc.

4 comments
Comment actions Permalink

You need to attach the sources jar/directory to the library, not a javadoc jar. Navigation works to sources. Javadocs are used for quick documentation feature.

0
Comment actions Permalink

awesome. Thank you. Jumping to the source now works.

However: I've added the javadoc jar, but the quick doc feature still displays only what can be retrieved from the .class file instead of the javadoc. How to solve that?

0
Comment actions Permalink

Maybe the dialog is just resized? See this post.

0
Comment actions Permalink

Thank you! Much appreciated.

0

Please sign in to leave a comment.