aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs192/ptw/a/b/c/FooPrivileged.java
blob: e55128344e954a45001a5805dcc85cf2a94e2a82 (plain)
1
2
3
4
5
6
7
8
9
package a.b.c;

privileged aspect Foo pertypewithin(Runnable+) {
	after() : staticinitialization(*) {
		  System.out.println(thisJoinPointStaticPart+" getWithinTypeName() = " + getWithinTypeName());
		  Class c = thisJoinPointStaticPart.getSourceLocation().getWithinType();
		  System.out.println(thisJoinPointStaticPart+" aspectOf("+c.getName()+") = "+Foo.aspectOf(c).getClass().getName());
	}
}