diff options
author | acolyer <acolyer> | 2005-11-22 09:28:09 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-11-22 09:28:09 +0000 |
commit | 554e73397c0b80ce32e56cf3adeb6921783e005d (patch) | |
tree | 8bfd42ffa88ab47a7787aedb5428ce12965cc9ff /tests | |
parent | 735d94f91a02e08bf5a1a86185b9318de4bd4319 (diff) | |
download | aspectj-554e73397c0b80ce32e56cf3adeb6921783e005d.tar.gz aspectj-554e73397c0b80ce32e56cf3adeb6921783e005d.zip |
tests and fix for pr103051 :- declare soft and adviceexecution
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/Pr103051.aj | 12 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs150/Pr103051.aj b/tests/bugs150/Pr103051.aj new file mode 100644 index 000000000..99e810431 --- /dev/null +++ b/tests/bugs150/Pr103051.aj @@ -0,0 +1,12 @@ +import java.io.IOException; + +public aspect Pr103051 { + declare soft: IOException: within(Pr103051) && adviceexecution(); + + before() : execution(* main(..)) { + throw new IOException("test"); + } + + public static void main(String args[]) { + } +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index a0cf54cff..d5df0462c 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -725,6 +725,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testReflectionOfAbstractITDs() { runTest("reflection on abstract ITDs (Billing example)"); } + + public void testDeclareSoftWithAdviceExecution() { + runTest("declare soft and adviceexecution"); + } /* * Load-time weaving bugs diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 7920840f4..120083cf7 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -80,6 +80,10 @@ </stdout> </run> </ajc-test> + + <ajc-test dir="bugs150" title="declare soft and adviceexecution" pr="103051"> + <compile files="Pr103051.aj" options="-Xdev:Pinpoint"/> + </ajc-test> <ajc-test dir="bugs150/pr114436" title="ClassFormatError binary weaving perthis"> <compile files="SimpleTrace.aj,ConcreteSimpleTracing.aj" outjar="aspects.jar"/> |