IDEA-68178 Completions does not complete class names in java annotations

This commit is contained in:
peter
2011-04-19 20:41:53 +02:00
parent 371de3f82b
commit 2773fa2036
12 changed files with 105 additions and 11 deletions
@@ -0,0 +1,10 @@
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = { Aaaaaa<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,10 @@
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = { Object.class, Aaaaaa<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,10 @@
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = { Object.class, Aaaaaaaaaaaaaaaaaaaaa<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,10 @@
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = { Aaaaaaaaaaaaaaaaaaaaa<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,10 @@
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = { Aaaaaaaaaaaaaaaaaaaaa.class<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,10 @@
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = { Aaaaaa<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,12 @@
import java.lang.Object;
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = {Object.class, Aaaaaaaaaaaaaaaaaaaaa.class<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -0,0 +1,12 @@
import java.lang.Object;
@interface TestFor {
Class[] testForClass();
}
class Foo {
@TestFor(testForClass = {Object.class, Aaaaaa<caret> } )
public void foo22() {}
}
class Aaaaaaaaaaaaaaaaaaaaa {}
@@ -176,6 +176,9 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
assertTrue("Exception not found", Arrays.binarySearch(myItems, "xxx") > 0);
}
public void testClassLiteralInArrayAnnoInitializer() throws Throwable { doTest(); }
public void testClassLiteralInArrayAnnoInitializer2() throws Throwable { doTest(); }
public void testReferenceParameters() throws Exception {
configureByFile("ReferenceParameters.java");
assertNotNull(myItems);
@@ -801,6 +801,8 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
}
public void testCastWith2TypeParameters() throws Throwable { doTest(); }
public void testClassLiteralInArrayAnnoInitializer() throws Throwable { doTest(); }
public void testClassLiteralInArrayAnnoInitializer2() throws Throwable { doTest(); }
public void testAnnotation() throws Exception {
doTest();