CTRL+B or CTR+left-mouse-clic shows decompiled library source code instead of real

Hi,

I am using IDEA 4.0.3 #1181.

In my project, I am using JDOM library. I have included it into my project settings paths as a jar file into "Used Project Libraries".

In "Configure Project Libraries" dialog, I have also included the source code of this library with "Attach Sources".

When I do CTRLB of CTRLleft-mouse-clic on a JDOM class, it shows me the decompiled source instead of the real source I have included.

Seems there is a bug or I have not configured my library correctly.

Thank you for your response.

Fabrice

2 comments
Comment actions Permalink

Fabrice DI MEGLIO wrote:

Hi,

I am using IDEA 4.0.3 #1181.

In my project, I am using JDOM library. I have included it into my project settings paths as a jar file into "Used Project Libraries".

In "Configure Project Libraries" dialog, I have also included the source code of this library with "Attach Sources".

When I do CTRLB of CTRLleft-mouse-clic on a JDOM class, it shows me the decompiled source instead of the real source I have included.

Seems there is a bug or I have not configured my library correctly.

Thank you for your response.

Fabrice

It sometimes happens that library source jar (or zip) doesn't have source root (com folder) at the top of the jar.
Instead it has that folder somewhere deeper in the file structure. In order to get things working in such a situation
you're to include that folder as a source root instead of jar file itself.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Thank you. I have pointed into my directory structure for "Attach Sources" the correct parent directory of the directory that contains the sources package. It works now.

Fabrice

0

Please sign in to leave a comment.