IDEA-86286 Java: bad completion (interface without package?)

This commit is contained in:
peter
2012-05-30 17:34:19 +02:00
parent 90388bdb29
commit 06262ae78b
6 changed files with 39 additions and 9 deletions
@@ -0,0 +1,8 @@
import java.util.*;
import java.util.List;
class Zoo {
{
List<String> l = new ArrayList<Stri<caret>>
}
}
@@ -1294,6 +1294,13 @@ public class ListUtils {
assert !('return' in myFixture.lookupElementStrings)
}
public void testDuplicateExpectedTypeInTypeArgumentList() {
configure()
def items = myFixture.lookupElements.findAll { it.lookupString == 'String' }
assert items.size() == 1
assert LookupElementPresentation.renderElement(items[0]).tailText?.contains('java.lang')
}
public void testSameSignature() {
configure()
lookup.setCurrentItem(myItems[1])