aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/MissingExposure.java
blob: 372845c3c87e70a9bec0254e08933345177efa59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class MissingExposure {
    public static void main(String[] args) {
        C c = new C();
        org.aspectj.testing.Tester.check(false, "shouldn't have compiled");
    }
}

class C {
    int _int = 13;
}

aspect Aspect {
    pointcut crash(byte _new): set(int C._int) && args(int);
    before(byte _new): crash(_new) {}
}