diff options
author | jhugunin <jhugunin> | 2003-01-21 19:02:53 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-01-21 19:02:53 +0000 |
commit | e34f6ca4b8f32a46ed29c6dc2305812e365bedf2 (patch) | |
tree | ecaa30b74167698c7675bc5f9451dfe36b48a899 | |
parent | d2b603683edc8747eebdb4d106c205dd9433da9f (diff) | |
download | aspectj-e34f6ca4b8f32a46ed29c6dc2305812e365bedf2.tar.gz aspectj-e34f6ca4b8f32a46ed29c6dc2305812e365bedf2.zip |
test for Bugzilla Bug 29689
Declare precedence should not allow multiple * patterns
-rw-r--r-- | tests/ajcTests.xml | 7 | ||||
-rw-r--r-- | tests/bugs/CircularPrecedence.java | 19 |
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 { +} |