aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/binary/lib/ConcreteA.aj
blob: 12a7aa38ab517dad2cda381945320d1da108815b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package lib;

public aspect ConcreteA {
    public interface Marker {}
    
    public String Marker.value = "public";
    private String Marker.pValue = "private";
    
    public static String getPrivateValue(Marker m) { return m.pValue; }

    public static class MyException extends Exception {}

    declare soft: MyException: withincode(new(..));
    
    
    // added this to cover Bugzilla Bug 34820  
    //     ajc -aspectpath fails with NPE for cflow pointcuts 
    int counter = 0;
    before(): cflow(within(client..*)) && call(* println(..)) {
        counter ++;
    }
}