Open Source instead of decompiled class

Answered

Can I force Intellij IDEA to open source code of a library instead of showing decompiled class files?
I have set Intellij IDEA Maven to always download sources. My Maven repository contains the jar and sources of the library.
Yet in certain cases Intellij prefers to show me decompiled class files.
In this specific case I am clicking to jump to an autowired Spring Bean dependency.
Strangely if I enter the name of the class in the CTRL+N popup, then it will show me the sources immediately.

4 comments
Comment actions Permalink

Please make sure that <Module source> entry is the first one in the table at the Dependencies tab of each module (Project Structure dialog).

0
Comment actions Permalink

<Module source> is always listed at the top after the JDK. So that's not it.

Isn't <Module source> the sources of the current module? I'm talking about a Java class from a library.

0
Comment actions Permalink

@Robert try moving the library to the top in module dependencies.

0
Comment actions Permalink

I put the library on top, but that has no effect. I also don't know why it would have any effect, since the class is only available in that library.

I'll make a bug report.

0

Please sign in to leave a comment.