diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-02-05 11:14:40 -0800 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-02-05 11:14:40 -0800 |
commit | edb41e385f232f7aebe1f6517d9a201221175a55 (patch) | |
tree | 9a7f39a97c943d7716caae59f2c241ea895a36c6 /tests | |
parent | 46f90792c01a4333eb62bc2ea6a1dcfb3efb0d23 (diff) | |
download | aspectj-edb41e385f232f7aebe1f6517d9a201221175a55.tar.gz aspectj-edb41e385f232f7aebe1f6517d9a201221175a55.zip |
391384: fix
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs172/pr391384/Code.java | 17 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc172/ajc172.xml | 6 |
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs172/pr391384/Code.java b/tests/bugs172/pr391384/Code.java new file mode 100644 index 000000000..e213586f4 --- /dev/null +++ b/tests/bugs172/pr391384/Code.java @@ -0,0 +1,17 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno { + String[] value(); +} + +aspect Code { + + @Anno({"xyz","abc"}) + public void m() {} + + pointcut p(): execution(public * @Anno(value="xyz=abc") *..*(..)); + + before() : p() { } + +} diff --git a/tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java b/tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java index 059faf8a5..083c56caf 100644 --- a/tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java @@ -23,6 +23,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc172Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testUnsupportedShouldBeNormalError_pr391384() { + runTest("unsupported should be normal error"); + } + // if the test is failing because the classes won't run, remove the run blocks from the ajc172.xml entry and re-run to check signatures. public void testSignatures_pr394535() throws Exception { runTest("signatures"); diff --git a/tests/src/org/aspectj/systemtest/ajc172/ajc172.xml b/tests/src/org/aspectj/systemtest/ajc172/ajc172.xml index 5c0739fb2..0393ce54d 100644 --- a/tests/src/org/aspectj/systemtest/ajc172/ajc172.xml +++ b/tests/src/org/aspectj/systemtest/ajc172/ajc172.xml @@ -2,6 +2,12 @@ <suite> + <ajc-test dir="bugs172/pr391384" title="unsupported should be normal error"> + <compile files="Code.java" options="-1.5"> + <message kind="error" text="Compiler limitation: annotation value support not implemented for type java.lang.String[]"/> + </compile> + </ajc-test> + <ajc-test dir="bugs172/pr394535" title="signatures"> <compile files="Bug.java" options="-1.5"/> <compile files="Bug2.java" options="-1.5"/> |