summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/tvars/Case1.aj
blob: 4c2038266aa39f3174d632575d184194d33b6c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.lang.annotation.*;
import java.io.*;

aspect MyAspect {
    before(): execution(* read(..)) { }
}


class MyClass<T extends String,E extends Number> implements MyInterface<T> {

    public static void main(String[] arg) { }

    public void read(T t) throws IOException {
    }

    public void exceptionDetected(E e) { }
}


interface MyInterface<T> {
    public void read(T t) throws IOException;
}