summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/tvars/Case2.aj
blob: c94dd23e54cacc00fa719f17ab8398960783ca03 (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<E> {

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

    public void read(E e) throws IOException {
    }

    public void exceptionDetected(E e) { }
}


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