Browse Source

test for Bugzilla Bug 29689

   Declare precedence should not allow multiple * patterns
tags/V_1_1_b5
jhugunin 21 years ago
parent
commit
e34f6ca4b8
2 changed files with 26 additions and 0 deletions
  1. 7
    0
      tests/ajcTests.xml
  2. 19
    0
      tests/bugs/CircularPrecedence.java

+ 7
- 0
tests/ajcTests.xml View File

@@ -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>

+ 19
- 0
tests/bugs/CircularPrecedence.java View File

@@ -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 {
}

Loading…
Cancel
Save