summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/ajcTests.xml7
-rw-r--r--tests/bugs/CircularPrecedence.java19
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index f63bab218..e7a063a57 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -5539,4 +5539,11 @@
<compile files="SoftWithin.java" />
<run class="SoftWithin"/>
</ajc-test>
+
+ <ajc-test dir="bugs" pr="29689"
+ title="Declare precedence should not allow multiple * patterns">
+ <compile files="CircularPrecedence.java">
+ <message kind="error" line="14"/>
+ </compile>
+ </ajc-test>
</suite>
diff --git a/tests/bugs/CircularPrecedence.java b/tests/bugs/CircularPrecedence.java
new file mode 100644
index 000000000..610a29e85
--- /dev/null
+++ b/tests/bugs/CircularPrecedence.java
@@ -0,0 +1,19 @@
+import org.aspectj.testing.Tester;
+
+/** @testcase Bugzilla Bug 29689
+ Declare precedence should not allow multiple * patterns
+
+ */
+public class CircularPrecedence {
+
+ public static void main(String[] args) {
+ }
+
+
+ public static aspect Coordinator {
+ declare precedence : *, Tracing, *; // should be error
+ }
+}
+
+aspect Tracing {
+}