IDEA-93208 (highlight incorrectly placed annotations)

This commit is contained in:
Roman Shevchenko
2012-10-19 22:41:40 +02:00
parent 188101d81c
commit 4279897e22
4 changed files with 40 additions and 14 deletions
@@ -0,0 +1,9 @@
@interface Anno { }
abstract class C {
abstract void f();
void m() {
<error descr="Annotations are not allowed here">@Anno</error> f();
}
}
@@ -28,6 +28,7 @@ public class AnnotationsHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest(BASE_PATH + "/" + getTestName(true) + ".java", checkWarnings, false);
}
public void testWrongPlace() { doTest(false); }
public void testNotValueNameOmitted() { doTest(false); }
public void testCannotFindMethod() { doTest(false); }
public void testIncompatibleType1() { doTest(false); }
@@ -41,7 +42,7 @@ public class AnnotationsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testInapplicable() { doTest(false); }
public void testDuplicateAttribute() { doTest(false); }
public void testDuplicateTarget() { doTest(false); }
public void testTypeAnnotations() { doTest(false); }
//public void testTypeAnnotations() { doTest(false); }
public void testInvalidPackageAnnotationTarget() { doTest(BASE_PATH + "/" + getTestName(true) + "/package-info.java", false, false); }
public void testPackageAnnotationNotInPackageInfo() { doTest(BASE_PATH + "/" + getTestName(true) + "/notPackageInfo.java", false, false); }
}