aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoraclement <aclement>2010-07-06 17:18:28 +0000
committeraclement <aclement>2010-07-06 17:18:28 +0000
commit2550fb71eb0d396c7ad2b786eb6193a5de62c5f4 (patch)
tree2063caa868408f541e4824edcfdda9f5ff33ba1b /tests/src
parent02510e70ef410c7148f674da5a94a354e9ee65d9 (diff)
downloadaspectj-2550fb71eb0d396c7ad2b786eb6193a5de62c5f4.tar.gz
aspectj-2550fb71eb0d396c7ad2b786eb6193a5de62c5f4.zip
318884: incremental: member types
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java
index 7d6e59854..5c33c36c5 100644
--- a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java
+++ b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java
@@ -109,4 +109,32 @@ public class IncrementalCompilationTests extends AbstractMultiProjectIncremental
assertEquals(1, getErrorMessages(p).size());
assertContains("Type mismatch: cannot convert from element type Integer to String", getErrorMessages(p).get(0));
}
+
+ // removing static inner class
+ public void testInnerClassChanges_318884_7() throws Exception {
+ String p = "pr318884_7";
+ initialiseProject(p);
+ build(p);
+ checkWasFullBuild();
+ checkCompileWeaveCount(p, 2, 3);
+ alter(p, "inc1");
+ build(p);
+ checkWasntFullBuild();
+ assertEquals(1, getErrorMessages(p).size());
+ assertContains("B.C cannot be resolved to a type", getErrorMessages(p).get(0));
+ }
+
+ // removing constructor from a static inner class
+ public void testInnerClassChanges_318884_8() throws Exception {
+ String p = "pr318884_8";
+ initialiseProject(p);
+ build(p);
+ checkWasFullBuild();
+ checkCompileWeaveCount(p, 2, 3);
+ alter(p, "inc1");
+ build(p);
+ checkWasntFullBuild();
+ assertEquals(1, getErrorMessages(p).size());
+ assertContains("The constructor B.C(String) is undefined", getErrorMessages(p).get(0));
+ }
}