aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/PR339.java
blob: 99855d0827b67bb3cfff79c8b451449a46dc2f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class PR339 {
    public static void main(String[] args) {
        new MemberInitSet().foo();
        org.aspectj.testing.Tester.check(true, "compiled");
    }
}

class MemberInitSet {
    String s = "S";
    { s="s"; }
    void foo() { s = "asdf"; }
}

aspect Setter pertarget(target(MemberInitSet)) {
    pointcut allSets(): set(String MemberInitSet.s);
}