aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/declareSoftWithin/aspects/Softener.aj
blob: 21eee34b6d4532c7377d9f8c5d0bfedf565608c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package aspects;

import test.NoSoftener;

/**
 * @author Ron Bodkin
 * @author Jim Hugunin
 */
public aspect Softener extends SoftLib {
    public pointcut scope() : within(NoSoftener);
}

abstract aspect SoftLib {
    abstract pointcut scope();

    public pointcut callsThrowingChecked() : call(* *(..)) && scope();
    declare soft: NoSuchMethodException: callsThrowingChecked();
}