aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr121575.aj
diff options
context:
space:
mode:
authoraclement <aclement>2005-12-21 11:30:48 +0000
committeraclement <aclement>2005-12-21 11:30:48 +0000
commitf9b9ad79f269295319d2b51ce9b2ab3423f75043 (patch)
tree5fd32adc2f007367a00f938e7763d8edb399496b /tests/bugs150/pr121575.aj
parent94cb3e9bcdb5beae6db3a32280bc42e03dbb31a8 (diff)
downloadaspectj-f9b9ad79f269295319d2b51ce9b2ab3423f75043.tar.gz
aspectj-f9b9ad79f269295319d2b51ce9b2ab3423f75043.zip
testcode for 121575
Diffstat (limited to 'tests/bugs150/pr121575.aj')
-rw-r--r--tests/bugs150/pr121575.aj32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs150/pr121575.aj b/tests/bugs150/pr121575.aj
new file mode 100644
index 000000000..77d5593b2
--- /dev/null
+++ b/tests/bugs150/pr121575.aj
@@ -0,0 +1,32 @@
+import java.io.*;
+
+aspect MyAspect {
+ before(): execution(* MyOtherClass.read()) { }
+}
+
+
+class MyClass<T,E> implements MyInterface<T> {
+
+ public static void main(String[] arg) { }
+
+ public T read() throws IOException {
+ return null;
+ }
+
+ public void exceptionDetected(E e) { }
+}
+
+
+interface MyInterface<T> {
+ public T read() throws IOException;
+}
+
+class MyOtherClass {
+ public void read() { }
+}
+
+public class pr121575 {
+ public static void main(String []argv) {
+ MyClass.main(null);
+ }
+} \ No newline at end of file