From 3ab5051f534fc054fe622e57a4684090faf98e3b Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 27 Jul 2005 11:51:03 +0000 Subject: changed dumb testcase --- tests/java5/generics/itds/FieldITDOnGeneric.aj | 21 +++++++++++++++++++++ .../java5/generics/itds/StaticFieldITDOnGeneric.aj | 20 -------------------- 2 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 tests/java5/generics/itds/FieldITDOnGeneric.aj delete mode 100644 tests/java5/generics/itds/StaticFieldITDOnGeneric.aj (limited to 'tests') diff --git a/tests/java5/generics/itds/FieldITDOnGeneric.aj b/tests/java5/generics/itds/FieldITDOnGeneric.aj new file mode 100644 index 000000000..9fb784b62 --- /dev/null +++ b/tests/java5/generics/itds/FieldITDOnGeneric.aj @@ -0,0 +1,21 @@ +/* + * Static ITD of a field onto a generic type that utilises + * a type variable from the target generic + */ +import java.util.*; + +class MathUtils { + +} + +public class FieldITDOnGenericType { + public static void main(String[] argv) { + MathUtils mu = new MathUtils(); + mu.n=42; + System.err.prinltn(">"+mu.n); + } +} + +aspect X { + E MathUtils.n; +} diff --git a/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj b/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj deleted file mode 100644 index 44194fae1..000000000 --- a/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Static ITD of a field onto a generic type that utilises - * a type variable from the target generic - */ -import java.util.*; - -class MathUtils { - -} - -public class StaticFieldITDOnGenericType { - public static void main(String[] argv) { - MathUtils.n=42; - System.err.prinltn(">"+MathUtils.n); - } -} - -aspect X { - static E MathUtils.n; -} -- cgit v1.2.3