aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2006-02-21 16:13:44 +0000
committeraclement <aclement>2006-02-21 16:13:44 +0000
commit3fa1bddb79a5e20a38cb39555e932df46f3d4dfa (patch)
tree2e20f46bb85f4f9ac9d69d15f9942a7a507739ac /tests/src/org
parent89d66dc89110db0f89538a7b78308db61e5539cc (diff)
downloadaspectj-3fa1bddb79a5e20a38cb39555e932df46f3d4dfa.tar.gz
aspectj-3fa1bddb79a5e20a38cb39555e932df46f3d4dfa.zip
test and fix for 122742 (more @AJ thisJoinPoint problems...)
Diffstat (limited to 'tests/src/org')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java8
-rw-r--r--tests/src/org/aspectj/systemtest/ajc151/ajc151.xml16
2 files changed, 22 insertions, 2 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
index 2672caa3e..922d278cd 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java
@@ -87,6 +87,14 @@ public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("swallowed exceptions");
}
+ public void testAtAspectVerifyErrorWithAfterThrowingAndthisJoinPoint_pr122742() {
+ runTest("@AJ VerifyError with @AfterThrowing and thisJoinPoint argument");
+ }
+
+ public void testAtAspectVerifyErrorWithAfterReturningAndthisJoinPoint_pr122742() {
+ runTest("@AJ VerifyError with @AfterReturning and thisJoinPoint argument");
+ }
+
public void testSwallowedExceptionIgnored() {
runTest("swallowed exceptions with xlint");
}
diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
index d340d0778..9c6a85b45 100644
--- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
+++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml
@@ -14,8 +14,20 @@
<ajc-test dir="bugs151/pr127299" title="missing import gives funny message">
<compile files="ModelErrorConversion.aj" options="-1.5"/>
- </ajc-test>
-
+ </ajc-test>
+
+ <ajc-test dir="bugs151/pr122742" title="@AJ VerifyError with @AfterThrowing and thisJoinPoint argument">
+ <compile files="AfterThrowingTest.java" options="-1.5"/>
+ <run class="AfterThrowingTest">
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs151/pr122742" title="@AJ VerifyError with @AfterReturning and thisJoinPoint argument">
+ <compile files="AfterReturningTest.java" options="-1.5"/>
+ <run class="AfterReturningTest">
+ </run>
+ </ajc-test>
+
<ajc-test dir="bugs151/pr120527" title="incorrect unused interface message">
<compile files="Bugs.aj" options="-warn:unusedPrivate"/>
</ajc-test>