aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr121575.aj
blob: 77d5593b2cdac6660de5dcef9138cfc6ce1d3329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
	}
}