mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
IDEA-202665 added tests for super method resolve order
This commit is contained in:
committed by
Artemiy Sartakov
parent
c4eda30c9f
commit
9e06553bf2
@@ -0,0 +1 @@
|
||||
<html><head><base href="placeholder"></head><body><div class='definition'><pre><a href="psi_element://Test"><code>Test<E extends <a href="psi_element://java.lang.Number"><code>Number</code></a>></code></a><br>E <b>remove</b>(<a href="psi_element://java.lang.Integer"><code>Integer</code></a> idx)</pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>See Also:</td><td valign='top'><p><a href="psi_element://TestImpl#remove(java.lang.Number)"><code>TestImpl.remove(Number)</code></a></td></table>
|
||||
@@ -0,0 +1,22 @@
|
||||
public interface Test<E extends Number> {
|
||||
|
||||
boolean remove(E e);
|
||||
|
||||
/**
|
||||
* @see TestImpl#remove(Number)
|
||||
*/
|
||||
E remove<caret>(Integer idx);
|
||||
}
|
||||
|
||||
public class TestImpl<E extends Number> implements Test<E> {
|
||||
|
||||
@Override
|
||||
public boolean remove(E e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public E remove(Integer idx) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<html><head><base href="placeholder"></head><body><div class='definition'><pre><a href="psi_element://Test"><code>Test<E></code></a><br>E <b>remove</b>(int idx)</pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>See Also:</td><td valign='top'><p><a href="psi_element://TestImpl#remove(int)"><code>TestImpl.remove(int)</code></a></td></table>
|
||||
@@ -0,0 +1,20 @@
|
||||
public interface Test<E> {
|
||||
|
||||
boolean remove(Object o);
|
||||
|
||||
/** @see TestImpl#remove(int) */
|
||||
E remove<caret>(int idx);
|
||||
}
|
||||
|
||||
public class TestImpl<E> implements Test<E> {
|
||||
|
||||
@Override
|
||||
public boolean remove(Object o) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public E remove(int idx) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+8
@@ -466,6 +466,14 @@ public class JavaDocInfoGeneratorTest extends CodeInsightTestCase {
|
||||
doTestClass();
|
||||
}
|
||||
|
||||
public void testSuperJavadocExactResolve() throws Exception {
|
||||
doTestAtCaret();
|
||||
}
|
||||
|
||||
public void testSuperJavadocErasureResolve() throws Exception {
|
||||
doTestAtCaret();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return JavaTestUtil.getJavaTestDataPath();
|
||||
|
||||
Reference in New Issue
Block a user