Something interesting (Goto decleration middle-click or ctrl+b)

Hi All

I am sorry if I am posting in wrong section.

Check the following code from Integer.toString(int)

When I middle-click (or ctrl+b) on ThreadLocal at 1 then IDEA is going to ThreadLocal.java source file (I have extracted source path included). But if I Middle click on ThreadLocal at 2 then IDEA is decompiling class file from rt.jar. :(

BUT in the following code IDEA always opening ActionListener.java.


I did another test with MouseAdapter and MouseListener, and observed that interfaces are always going to Source but classes are decompiled from rt.jar.

Any explantion? Anybody?

0
Avatar
Permanently deleted user

Seems to be a bug. Please submit an SCR.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Anki" <no_mail@jetbrains.com> wrote in message
news:13734470.1070950587146.JavaMail.javamailuser@localhost...

Hi All

>

I am sorry if I am posting in wrong section.

>

Check the following code from Integer.toString(int)

     // Per-thread buffer for string/stringbuffer conversion
>     private static /*1*/ThreadLocal perThreadBuffer = new
/*2*/ThreadLocal() {
>         protected synchronized Object initialValue() {
>             return new char[12];
>         }
>     };
> ]]>

When I middle-click (or ctrl+b) on ThreadLocal at 1 then IDEA is going to

ThreadLocal.java source file (I have extracted source path included). But if
I Middle click on ThreadLocal at 2 then IDEA is decompiling class file from
rt.jar. :(
>

BUT in the following code IDEA always opening ActionListener.java.

     private static ActionListener a = new ActionListener() {
>         public void actionPerformed(ActionEvent e) {
>             //TODO: Implement this method
>         }
>     };
> ]]>

>

I did another test with MouseAdapter and MouseListener, and observed that

interfaces are always going to Source but classes are decompiled from
rt.jar.
>

Any explantion? Anybody?



0

请先登录再写评论。