diff options
author | aclement <aclement> | 2005-09-13 15:07:11 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-09-13 15:07:11 +0000 |
commit | 76d607d6db0639848d7655e76cef208d7177b527 (patch) | |
tree | e659604f1e38d85d73ced5c99b995f2823db5121 | |
parent | a058bd9ae17ca3570ca53ff7d0feaaa2daf1102a (diff) | |
download | aspectj-76d607d6db0639848d7655e76cef208d7177b527.tar.gz aspectj-76d607d6db0639848d7655e76cef208d7177b527.zip |
test and fix for pr106554: staticinitialization and PTW
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 2 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index bbecd104e..5ca0b5775 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -97,6 +97,8 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("compiler error when mixing inheritance, overriding and polymorphism"); } + public void testPerTypeWithin_pr106554() {runTest("Problem in staticinitialization with pertypewithin aspect");} + public void testPerTypeWithinMissesNamedInnerTypes() { runTest("pertypewithin() handing of inner classes (1)"); } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 1014ea653..85257f841 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -554,6 +554,17 @@ <message kind="weave" text="Join point 'method-execution(void C.m3())' in Type 'C' (AroundAdvice.aj:14) advised by before advice from 'ErrorHandling' (AroundAdvice.aj:8)"/> </compile> </ajc-test> + + <ajc-test dir="bugs150/pr106554" pr="106554" title="Problem in staticinitialization with pertypewithin aspect"> + <compile files="A.aj" options="-showWeaveInfo"> + <message kind="weave" text="Join point 'staticinitialization(void A.<clinit>())' in Type 'A' (A.aj:1) advised by before advice from 'StopsInit' (A.aj:21)"/> + </compile> + <run class="A"> + <stdout> + <line text="test = 1"/> + </stdout> + </run> + </ajc-test> <ajc-test dir="bugs150/SimpleInsuranceFailure" title="raw and generic type conversion with itd cons"> <compile files="" options=" -emacssym, -sourceroots ." > |