aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/org/aspectj')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
index b0b82e6f5..cd81d05fc 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java
@@ -836,6 +836,23 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa
assertEquals("Unexpected compiler error", 0, l.size());
}
+ public void testDeclareAnnotationNPE_298504() {
+ AjdeInteractionTestbed.VERBOSE = true;
+ String p = "pr298504";
+ initialiseProject(p);
+ build(p);
+ List l = getErrorMessages(p);
+ assertTrue(l.toString().indexOf("ManagedResource cannot be resolved to a type") != -1);
+ // checkWasFullBuild();
+ alter(p, "inc1");
+ build(p);
+ // checkWasntFullBuild();
+ l = getCompilerErrorMessages(p);
+ assertTrue(l.toString().indexOf("NullPointerException") == -1);
+ l = getErrorMessages(p);
+ assertTrue(l.toString().indexOf("ManagedResource cannot be resolved to a type") != -1);
+ }
+
public void testIncrementalAnnoStyle_pr286341() {
AjdeInteractionTestbed.VERBOSE = true;
String base = "pr286341_base";