diff options
author | acolyer <acolyer> | 2005-08-19 13:50:20 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-19 13:50:20 +0000 |
commit | 169a48870ac2680169e0632ee8d79b372949be10 (patch) | |
tree | 18be03ec4bff02327d545f50a330cb375b45784d | |
parent | 88720ff6ffbfa5b4ee597912493b1ebdd62ac059 (diff) | |
download | aspectj-169a48870ac2680169e0632ee8d79b372949be10.tar.gz aspectj-169a48870ac2680169e0632ee8d79b372949be10.zip |
tests for pr91114, (before - after) expression
-rw-r--r-- | tests/bugs150/pr91114.aj | 10 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 7 |
3 files changed, 20 insertions, 1 deletions
diff --git a/tests/bugs150/pr91114.aj b/tests/bugs150/pr91114.aj new file mode 100644 index 000000000..f2b1feccb --- /dev/null +++ b/tests/bugs150/pr91114.aj @@ -0,0 +1,10 @@ +public class pr91114 { + + public void bar() { + long before = 0; + long after = 0; + long x = (before - after); // doesn't fail without the parentheses! + System.out.println("... " + (before - after) + " ..."); + } + +}
\ 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 bff207258..bc3663e40 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 testAjKeywordsAsIdentifiers2() { + runTest("before and after are valid identifiers in classes, part 2"); + } + public void testNoBeforeReturningAdvice() { runTest("before returning advice not allowed!"); } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 67d12f90f..390615def 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -66,7 +66,12 @@ <compile files="pr74562.aj"> </compile> </ajc-test> - + + <ajc-test dir="bugs150" pr="91114" title="before and after are valid identifiers in classes, part 2"> + <compile files="pr91114.aj"> + </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"/> |