org.aspectj/tests/bugs/CircularDominates.java
wisberg 8312dfbc60 added test cases for old jitterbugs
moved passing tests from ajcTestsFailing to ajcTests
2002-12-20 04:54:45 +00:00

30 lines
541 B
Java

import org.aspectj.testing.Tester;
import java.util.*;
/** @testcase PR#902 circularity in declare dominates */
public class CircularDominates {
public static void main(String[] args) {
foo();
throw new Error("expected compiler error");
}
public static void foo() {
}
}
aspect BugDemoAspect {
declare dominates : B, A, B; // CE 18
}
aspect A {
before() : target(CircularDominates) && call(static void foo(..)) {
}
}
aspect B {
before() : cflowbelow(execution(static void main(String[]))) {
}
}