summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-19 13:22:37 +0000
committeracolyer <acolyer>2005-08-19 13:22:37 +0000
commitb2b46ce365939bee3ed9f5840b43bb88edf13e93 (patch)
tree32f42a8ec1a81c1b1a9b0915b79bcaa34f2fc176 /tests/src
parent01ab6bf7cfc79db5020d0537c97451870d88b2ba (diff)
downloadaspectj-b2b46ce365939bee3ed9f5840b43bb88edf13e93.tar.gz
aspectj-b2b46ce365939bee3ed9f5840b43bb88edf13e93.zip
tests for pr78707, before returning and before throwing advice
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml7
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index 7b2c8327e..bff207258 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -226,6 +226,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
runTest("before and after are valid identifiers in classes");
}
+ public void testNoBeforeReturningAdvice() {
+ runTest("before returning advice not allowed!");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index 6bf54de53..67d12f90f 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -67,6 +67,13 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs150" pr="78707" title="before returning advice not allowed!">
+ <compile files="pr78707.aj">
+ <message line="3" kind="error" text="Syntax error on token &quot;returning&quot;, delete this token"/>
+ <message line="3" kind="error" text="Syntax error on token &quot;throwing&quot;, delete this token"/>
+ </compile>
+ </ajc-test>
+
<ajc-test dir="bugs150" pr="107059" title="parser crashes on call(void (@a *)(..)">
<compile files="pr107059.aj">
<message line="3" kind="error" text="Syntax error on token &quot;(&quot;, &quot;name pattern&quot; expected"/>