diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-08-23 13:05:24 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-08-23 13:05:24 -0700 |
commit | 55ebaa15305cc686c6ed5915ff1115071b3c80bd (patch) | |
tree | 844235fca8f35eb1086cb45607f9a8d0fb4b8c21 /tests | |
parent | 76d695ff1a6f8863a1b64f17e38a5ffee170f09f (diff) | |
download | aspectj-55ebaa15305cc686c6ed5915ff1115071b3c80bd.tar.gz aspectj-55ebaa15305cc686c6ed5915ff1115071b3c80bd.zip |
384401
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs171/pr384401/X.java | 15 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc171/ajc171.xml | 6 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs171/pr384401/X.java b/tests/bugs171/pr384401/X.java new file mode 100644 index 000000000..e9a70eedb --- /dev/null +++ b/tests/bugs171/pr384401/X.java @@ -0,0 +1,15 @@ +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.AfterThrowing; +import org.aspectj.lang.annotation.Aspect; + +@Aspect +public class X { +// @AfterThrowing(pointcut="execution(* *(..))",throwing = "e") + @AfterThrowing(throwing = "e") + public void bizLoggerWithException(JoinPoint thisJoinPoint,Throwable e) { + // .....// do some stuff + } + +} + +class BizLoggable {} diff --git a/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java b/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java index 95d459a5d..c21fc77b2 100644 --- a/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc171Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testNpe_pr384401() { + runTest("npe"); + } + public void testUnresolvableEnum_pr387568() { runTest("unresolvable enum"); } diff --git a/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml b/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml index 4f09f7c84..d9a7651f3 100644 --- a/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml +++ b/tests/src/org/aspectj/systemtest/ajc171/ajc171.xml @@ -2,6 +2,12 @@ <suite> + <ajc-test dir="bugs171/pr384401" title="npe"> + <compile files="X.java" options="-1.5"> + <message kind="error" line="9" text="the advice annotation must specify a pointcut value"/> + </compile> + </ajc-test> + <ajc-test dir="bugs171/pr387444" title="soft 17"> <compile files="Code.java" options="-1.7"/> </ajc-test> |