Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
12345678910111213141516171819202122 |
-
- import org.aspectj.testing.Tester;
-
- public class NamedWithinPointcuts {
- public static void main (String[] args) {
- Tester.expectEvent("before");
- Tester.checkAllEventsIgnoreDups();
- }
- }
-
- aspect Test {
- pointcut withinAspects() : within(Test) ;
-
- static void log() { }
-
- /** @testcase PR#635 Named Within pointcuts failing */
- //before() : !within(Test) { // works fine
- before() : !(withinAspects()) { // stack overflow
- log(); // comment out to avoid stack overflow
- Tester.event("before");
- }
- }
|