From f9b9ad79f269295319d2b51ce9b2ab3423f75043 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 21 Dec 2005 11:30:48 +0000 Subject: testcode for 121575 --- tests/java5/generics/tvars/Case1.aj | 23 +++++++++++++++++++++++ tests/java5/generics/tvars/Case2.aj | 23 +++++++++++++++++++++++ tests/java5/generics/tvars/Case3.aj | 23 +++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 tests/java5/generics/tvars/Case1.aj create mode 100644 tests/java5/generics/tvars/Case2.aj create mode 100644 tests/java5/generics/tvars/Case3.aj (limited to 'tests/java5') diff --git a/tests/java5/generics/tvars/Case1.aj b/tests/java5/generics/tvars/Case1.aj new file mode 100644 index 000000000..4c2038266 --- /dev/null +++ b/tests/java5/generics/tvars/Case1.aj @@ -0,0 +1,23 @@ +import java.lang.annotation.*; +import java.io.*; + +aspect MyAspect { + before(): execution(* read(..)) { } +} + + +class MyClass implements MyInterface { + + public static void main(String[] arg) { } + + public void read(T t) throws IOException { + } + + public void exceptionDetected(E e) { } +} + + +interface MyInterface { + public void read(T t) throws IOException; +} + diff --git a/tests/java5/generics/tvars/Case2.aj b/tests/java5/generics/tvars/Case2.aj new file mode 100644 index 000000000..c94dd23e5 --- /dev/null +++ b/tests/java5/generics/tvars/Case2.aj @@ -0,0 +1,23 @@ +import java.lang.annotation.*; +import java.io.*; + +aspect MyAspect { + before(): execution(* read(..)) { } +} + + +class MyClass implements MyInterface { + + public static void main(String[] arg) { } + + public void read(E e) throws IOException { + } + + public void exceptionDetected(E e) { } +} + + +interface MyInterface { + public void read(T t) throws IOException; +} + diff --git a/tests/java5/generics/tvars/Case3.aj b/tests/java5/generics/tvars/Case3.aj new file mode 100644 index 000000000..57e87a544 --- /dev/null +++ b/tests/java5/generics/tvars/Case3.aj @@ -0,0 +1,23 @@ +import java.lang.annotation.*; +import java.io.*; + +aspect MyAspect { + before(): execution(* read(..)) { } +} + + +class MyClass implements MyInterface { + + public static void main(String[] arg) { } + + public void read(E e) throws IOException { + } + + public void exceptionDetected(E e) { } +} + + +interface MyInterface { + public void read(T t) throws IOException; +} + -- cgit v1.2.3