diff options
Diffstat (limited to 'tests/bugs150/PR94167.java')
-rw-r--r-- | tests/bugs150/PR94167.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs150/PR94167.java b/tests/bugs150/PR94167.java new file mode 100644 index 000000000..b71f3dd59 --- /dev/null +++ b/tests/bugs150/PR94167.java @@ -0,0 +1,26 @@ +package reflect; + +import org.aspectj.lang.*; +import org.aspectj.lang.reflect.*; +import java.lang.reflect.*; + +aspect Test { + before() : call(* *(..)) && !within(Test) { + MethodSignature sig = (MethodSignature)thisJoinPoint.getSignature(); + //sig.getDeclaringType(); // uncomment to work-around + Method method = sig.getMethod(); + } +} + +public class PR94167 { + public static void main(String args[]) { + try { + Inner.foo(); + } catch (Throwable t) { + t.printStackTrace(); + } + } + public static class Inner { + public static void foo() {} + } +}
\ No newline at end of file |