Przeglądaj źródła

test for Bugzilla Bug 29689

   Declare precedence should not allow multiple * patterns
tags/V_1_1_b5
jhugunin 21 lat temu
rodzic
commit
e34f6ca4b8
2 zmienionych plików z 26 dodań i 0 usunięć
  1. 7
    0
      tests/ajcTests.xml
  2. 19
    0
      tests/bugs/CircularPrecedence.java

+ 7
- 0
tests/ajcTests.xml Wyświetl plik

@@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz