--- /dev/null
+// pr104220 - adviceexecution joinpoint toString forms
+
+public aspect Pr104220 {
+
+ before() : adviceexecution() && !within(Pr104220) {
+ System.out.println(thisJoinPoint.getKind());
+ System.out.println(thisJoinPoint.toString());
+ System.out.println(thisJoinPoint.toShortString());
+ System.out.println(thisJoinPoint.toLongString());
+ }
+
+ public static void main(String[] args) {
+ new C().foo();
+ }
+
+}
+
+class C {
+
+ public void foo() {}
+
+}
+
+aspect SomeAspect {
+
+ before() : execution(* foo(..)) {}
+
+}
+
runTest("Anonymous types and nome matching");
}
+ public void testAdviceExecutionJPToStringForms() {
+ runTest("adviceexecution join point toString forms");
+ }
+
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
</run>
</ajc-test>
+ <ajc-test dir="bugs150" pr="104220" title="adviceexecution join point toString forms">
+ <compile files="Pr104220.aj"/>
+ <run class="Pr104220">
+ <stdout>
+ <line text="adviceexecution"/>
+ <line text="adviceexecution(void SomeAspect.before())"/>
+ <line text="adviceexecution(SomeAspect.before())"/>
+ <line text="adviceexecution(void SomeAspect.before())"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
<ajc-test dir="bugs150/pr113066" title="possible static imports bug - 1">
<compile files="Consts.java,TestNPE.java" options="-1.5"/>
</ajc-test>