aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/access/psub/A.java
blob: 3b4199d4cd68f9ac30dc5dfa84cdeaeb246c5938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package psub;

import org.aspectj.lang.annotation.SuppressAjWarnings;
import org.aspectj.testing.Tester;
import pc.C;

aspect A {
	private static interface Marker {}
	@SuppressAjWarnings("adviceDidNotMatch")
    before(): call(String SubC.getMyPackage()) {
    	Tester.checkFailed("shouldn't ever run this " + thisJoinPoint);
    }
    before(): !target(Marker) && !this(Marker) && !args(Marker, ..) && call(String C.getMyPackage()) {
    	Tester.note("C.getMyPackage on " + thisJoinPoint.getTarget().getClass().getName());
    }
}