diff options
author | aclement <aclement> | 2010-07-06 17:18:28 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-07-06 17:18:28 +0000 |
commit | 2550fb71eb0d396c7ad2b786eb6193a5de62c5f4 (patch) | |
tree | 2063caa868408f541e4824edcfdda9f5ff33ba1b /tests/src | |
parent | 02510e70ef410c7148f674da5a94a354e9ee65d9 (diff) | |
download | aspectj-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.java | 28 |
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)); + } } |