diff options
author | aclement <aclement> | 2006-02-16 09:33:38 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-02-16 09:33:38 +0000 |
commit | d4219e12eaa86ed810392364931a92324dc2a67f (patch) | |
tree | e31da2708fe3663656d04ba27ec9d6f5f8a0dad4 /tests/src/org/aspectj/systemtest/ajc151 | |
parent | 15930e7f92e2d4be1866509a8550373a4bcea978 (diff) | |
download | aspectj-d4219e12eaa86ed810392364931a92324dc2a67f.tar.gz aspectj-d4219e12eaa86ed810392364931a92324dc2a67f.zip |
test and fix for 121616
Diffstat (limited to 'tests/src/org/aspectj/systemtest/ajc151')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc151/ajc151.xml | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java index 7a64444b9..24b006fd2 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java @@ -160,6 +160,10 @@ public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("@AJ no NPE with deow when structure model isn't generated"); } + public void testAtAspectWithoutJoinPointImport_pr121616() { + runTest("@AJ without JoinPoint import"); + } + /* * Load-time weaving bugs and enhancements */ diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml index de0488dbd..46e8bc97d 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml +++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml @@ -176,6 +176,12 @@ </compile> </ajc-test> + <ajc-test dir="bugs151" title="@AJ without JoinPoint import"> + <compile files="pr121616.java" options="-1.5"> + <message kind="error" line="13" text="JoinPoint cannot be resolved to a type"/> + </compile> + </ajc-test> + <!-- New features down here... when they arent big enough to have their own test file --> <ajc-test dir="features151/ptw" title="exposing withintype"> |