From 73b22d28e29ed9a4bb5ef2325f9b91dc3b800e33 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 20 Oct 2005 08:32:26 +0000 Subject: more design tests. --- tests/java5/generics/itds/design/DesignF.java | 16 ++++++++++++++++ tests/java5/generics/itds/design/DesignG.java | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tests/java5/generics/itds/design/DesignF.java create mode 100644 tests/java5/generics/itds/design/DesignG.java (limited to 'tests/java5/generics') diff --git a/tests/java5/generics/itds/design/DesignF.java b/tests/java5/generics/itds/design/DesignF.java new file mode 100644 index 000000000..a49532d98 --- /dev/null +++ b/tests/java5/generics/itds/design/DesignF.java @@ -0,0 +1,16 @@ +import java.util.*; + +// Checking what gets into the target classes... +// Here the ITDs are on some target *class* + +class C {} + +aspect X { + + List C.list1; + List C.list2; + + String C.field1; + Q C.field2; + +} diff --git a/tests/java5/generics/itds/design/DesignG.java b/tests/java5/generics/itds/design/DesignG.java new file mode 100644 index 000000000..dd7636146 --- /dev/null +++ b/tests/java5/generics/itds/design/DesignG.java @@ -0,0 +1,17 @@ +import java.util.*; + +// Checking what gets into the target classes... +// Here the ITDs are on some interface and so found in the class +// that implements the interface + +class C implements I {} + +interface I {} + +aspect X { + + List I.ln; + + Q I.n; + +} -- cgit v1.2.3