diff options
author | acolyer <acolyer> | 2005-08-19 12:43:13 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-19 12:43:13 +0000 |
commit | 5e9aca91401b7c13e56173ef1044959ca9ccc5e5 (patch) | |
tree | 5cfbf2277d28b7fa54e4e535d13ae232723d21a8 /tests/src | |
parent | 33a3148e7a29050232e486457ce5a1527d3213a7 (diff) | |
download | aspectj-5e9aca91401b7c13e56173ef1044959ca9ccc5e5.tar.gz aspectj-5e9aca91401b7c13e56173ef1044959ca9ccc5e5.zip |
tests for pr 64568 and 74562
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 8 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 1e51bb851..7b2c8327e 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -218,6 +218,14 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("target(@Foo *)"); } + public void testErrorMessageOnITDWithTypePatterns() { + runTest("clear error message on itd with type pattern"); + } + + public void testAjKeywordsAsIdentifiers() { + runTest("before and after are valid identifiers in classes"); + } + // 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 fcd2e45f2..6bf54de53 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -55,6 +55,18 @@ </compile> </ajc-test> + <ajc-test dir="bugs150" pr="64568" title="clear error message on itd with type pattern"> + <compile files="pr64568.aj"> + <message line="4" kind="error" text="Syntax error on token "*", delete this token"/> + <message line="4" kind="error" text="foo cannot be resolved to a type"/> + </compile> + </ajc-test> + + <ajc-test dir="bugs150" pr="74562" title="before and after are valid identifiers in classes"> + <compile files="pr74562.aj"> + </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"/> |