summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs172/pr391384/Code.java17
-rw-r--r--tests/src/org/aspectj/systemtest/ajc172/Ajc172Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc172/ajc172.xml6
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"/>