Declare precedence should not allow multiple * patternstags/V_1_1_b5
@@ -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> |
@@ -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 { | |||
} |