diff options
author | aclement <aclement> | 2006-02-13 10:51:11 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-02-13 10:51:11 +0000 |
commit | 0b39aa5dd0218561f11258ac272112ada447065e (patch) | |
tree | b5b755ccab07c2eabbcbd44fb24764d2c9b8e48f /tests/src | |
parent | e2978d39000b099f4705047777263de6005ae5fe (diff) | |
download | aspectj-0b39aa5dd0218561f11258ac272112ada447065e.tar.gz aspectj-0b39aa5dd0218561f11258ac272112ada447065e.zip |
fix for 119882 (from Helen) - similar to fix for 113531
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java | 29 |
1 files changed, 29 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 03ab2daef..0623ee58a 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -485,6 +485,35 @@ public class MultiProjectIncrementalTests extends AjdeInteractionTestbed { .getMessage()); } + // Stage 1: Compile the 4 files, pack.A2 extends pack.A1 (aspects) where + // A2 uses a protected field in A1 and pack.C2 extends pack.C1 (classes) + // where C2 uses a protected field in C1 + // Stage 2: make the field private in class C1 ==> compile errors in C2 + // Stage 3: make the field private in aspect A1 whilst there's the compile + // error. + // There shouldn't be a BCExcpetion saying can't find delegate for pack.C2 + public void testPr119882() { + initialiseProject("PR119882"); + build("PR119882"); + assertFalse("build should have compiled ok",MyTaskListManager.hasErrorMessages()); + alter("PR119882","inc1"); + build("PR119882"); + //fullBuild("PR119882"); + assertEquals("error message should be 'i cannot be resolved' ", + "i cannot be resolved", + ((IMessage)MyTaskListManager.getErrorMessages().get(0)) + .getMessage()); + alter("PR119882","inc2"); + build("PR119882"); + assertTrue("There should be no exceptions handled:\n"+MyErrorHandler.getErrorMessages(), + MyErrorHandler.getErrorMessages().isEmpty()); + assertEquals("error message should be 'i cannot be resolved' ", + "i cannot be resolved", + ((IMessage)MyTaskListManager.getErrorMessages().get(0)) + .getMessage()); + + } + public void testPr112736() { AjdeInteractionTestbed.VERBOSE = true; initialiseProject("PR112736"); |