mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-158241 Find Usages fails to find usages
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package x;
|
||||
|
||||
class Data {
|
||||
}
|
||||
|
||||
abstract class Abstract<T extends Data> {
|
||||
public String foo(T data) {
|
||||
return "foo";
|
||||
}
|
||||
}
|
||||
|
||||
interface Interface<T extends Data> {
|
||||
public String <caret>foo(T data);
|
||||
}
|
||||
|
||||
class Implementation extends Abstract<Data> implements Interface<Data> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package x;
|
||||
|
||||
class Data {
|
||||
}
|
||||
|
||||
abstract class Abstract<T extends Data> {
|
||||
public String <caret>foo(T data) {
|
||||
return "foo";
|
||||
}
|
||||
}
|
||||
|
||||
interface Interface<T extends Data> {
|
||||
public String foo(T data);
|
||||
}
|
||||
|
||||
class Implementation extends Abstract<Data> implements Interface<Data> {
|
||||
|
||||
}
|
||||
@@ -115,6 +115,16 @@ public class JavaGotoSuperTest extends LightDaemonAnalyzerTestCase {
|
||||
checkResultByFile(getBasePath() + "SiblingInheritance.java");
|
||||
}
|
||||
|
||||
public void testSiblingInheritanceAndGenerics() throws Throwable {
|
||||
configureByFile(getBasePath() + "SiblingInheritanceAndGenerics.java");
|
||||
AnAction action = ActionManager.getInstance().getAction(IdeActions.ACTION_GOTO_SUPER);
|
||||
AnActionEvent event = AnActionEvent.createFromAnAction(action, null, "", DataManager.getInstance().getDataContextFromFocus().getResultSync());
|
||||
action.update(event);
|
||||
assertTrue(event.getPresentation().isEnabledAndVisible());
|
||||
action.actionPerformed(event);
|
||||
checkResultByFile(getBasePath() + "SiblingInheritanceAndGenerics.after.java");
|
||||
}
|
||||
|
||||
public void testDoNotShowSiblingInheritanceLineMarkerIfSubclassImplementsTheSameInterfaceAsTheCurrentClass() throws Throwable {
|
||||
configureByFile(getBasePath() + "DeceivingSiblingInheritance.java");
|
||||
PsiJavaFile file = (PsiJavaFile)getFile();
|
||||
|
||||
Reference in New Issue
Block a user