diff options
author | acolyer <acolyer> | 2005-08-19 13:22:37 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-19 13:22:37 +0000 |
commit | b2b46ce365939bee3ed9f5840b43bb88edf13e93 (patch) | |
tree | 32f42a8ec1a81c1b1a9b0915b79bcaa34f2fc176 /tests/src | |
parent | 01ab6bf7cfc79db5020d0537c97451870d88b2ba (diff) | |
download | aspectj-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.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 7 |
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 "returning", delete this token"/> + <message line="3" kind="error" text="Syntax error on token "throwing", 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 "(", "name pattern" expected"/> |