Go-to implementation only shows one of the subclasses of the tww

Hi all,


I have the below Abstract class in the specificed package:

package com.mycompnay.package1;
public abstract class MyAbstractClass implements InterfaceX {


and two subclasses

package com.mycompnay.package1;
public class SubClass1 extends MyAbstractClass implements InterfaceA, InterfaceB, InterfaceC {


package com.mycompany.package1.test.util;
public class SubClass2 extends MyAbstractClass implements InterfaceY {


When I have the cursor on the Abstract class MyAbstractClass and select menu: Goto->Implementation(s), it takes me to SubClass1. It does not show me a drop down list to choose from going to SubClass1 or SubClass2. It goes directly to SubClass1.


Why doesn't this work as expected. It should show me a drop down list of SubClass1 and SubClass2 and allow me to select which implementation i want to go to.


thanks
k.

2 comments
Comment actions Permalink

I cannot reproduce it here.
Could you please post the sample project into the www.intellij.net/jira ?
Thanks.
--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"john lukar" <no_mail@jetbrains.com> wrote in message
news:12887434.1156874987329.JavaMail.itn@is.intellij.net...

Hi all,

>
>

I have the below Abstract class in the specificed package:

>

package com.mycompnay.package1;
public abstract class MyAbstractClass implements InterfaceX {

>
>

and two subclasses

>

package com.mycompnay.package1;
public class SubClass1 extends MyAbstractClass implements InterfaceA,
InterfaceB, InterfaceC {

>
>

package com.mycompany.package1.test.util;
public class SubClass2 extends MyAbstractClass implements InterfaceY {

>
>

When I have the cursor on the Abstract class MyAbstractClass and select
menu: Goto->Implementation(s), it takes me to SubClass1. It does not
show me a drop down list to choose from going to SubClass1 or SubClass2.
It goes directly to SubClass1.

>
>

Why doesn't this work as expected. It should show me a drop down list of
SubClass1 and SubClass2 and allow me to select which implementation i
want to go to.

>
>

thanks
k.



0
Comment actions Permalink

I can not reproduce it any more after I created another implementation of the interface.

I used the refactoring to implement a SubClass3 of the Interface. After this, now I can see all the implementations when I use Goto--> Implementation .


I suspect something to do with project indexes being out of wack and somehow getting refreshed after creating another implementation.

0

Please sign in to leave a comment.