smart completion of primitive and array type class object access (IDEA-72265)

This commit is contained in:
peter
2011-09-13 17:06:51 +02:00
parent aea5cea3d5
commit a3a880da44
8 changed files with 45 additions and 30 deletions
@@ -0,0 +1,5 @@
class Bar {
public static void main(String[] args) {
Class<?> cls = byte[].class;<caret>
}
}
@@ -0,0 +1,5 @@
class Bar {
public static void main(String[] args) {
Class<?> cls = byte[].<caret>
}
}
@@ -0,0 +1,10 @@
class Bar {
@interface B {
Class<?> value();
}
@B(byte[].class<caret>)
public static void main(String[] args) {
}
}
@@ -0,0 +1,10 @@
class Bar {
@interface B {
Class<?> value();
}
@B(byte[].<caret>)
public static void main(String[] args) {
}
}
@@ -951,6 +951,8 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
public void testStaticallyImportedField() throws Throwable { doTest(); }
public void testSiblingOfAStaticallyImportedField() throws Throwable { doTest(); }
public void testPrimitiveArrayClassInMethod() throws Throwable { doTest(); }
public void testPrimitiveClassInAnno() throws Throwable { doTest(); }
public void testInferFromCall() throws Throwable {
doTest();