aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs163/pr250091/Demo.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs163/pr250091/Demo.java')
-rw-r--r--tests/bugs163/pr250091/Demo.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs163/pr250091/Demo.java b/tests/bugs163/pr250091/Demo.java
new file mode 100644
index 000000000..0e3f191b0
--- /dev/null
+++ b/tests/bugs163/pr250091/Demo.java
@@ -0,0 +1,26 @@
+import org.aspectj.lang.reflect.MethodSignature;
+
+class A<X> { }
+
+class Base {
+ public A<String> foo() { return null; }
+}
+
+public aspect Demo {
+ public A<String> Base.bar() { return null; }
+ public Base Base.baz() { return null; }
+
+ before(): execution(* Base.*(..)) {
+ Class<?> cs = ((MethodSignature)thisJoinPointStaticPart.getSignature()).getReturnType();
+ System.out.format("%s (%b)%n",
+ cs,
+ ClassNotFoundException.class == cs);
+ }
+
+ public static void main(String[] arg) {
+ new Base().foo();
+ new Base().bar();
+ new Base().baz();
+ }
+}
+