summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj
diff options
context:
space:
mode:
authoraclement <aclement>2005-07-26 14:17:04 +0000
committeraclement <aclement>2005-07-26 14:17:04 +0000
commit9ecb2c94f5e3d9a882a34299f751ec7480973791 (patch)
tree27df336a51b50cddd3869c28994fd5bec6795920 /tests/java5/generics/itds/StaticFieldITDOnGeneric.aj
parenta3dd516b80debb7dfd0c45fa2b0e8ad7959b4b91 (diff)
downloadaspectj-9ecb2c94f5e3d9a882a34299f751ec7480973791.tar.gz
aspectj-9ecb2c94f5e3d9a882a34299f751ec7480973791.zip
sick sick sick generic itd tests.
Diffstat (limited to 'tests/java5/generics/itds/StaticFieldITDOnGeneric.aj')
-rw-r--r--tests/java5/generics/itds/StaticFieldITDOnGeneric.aj20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj b/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj
new file mode 100644
index 000000000..44194fae1
--- /dev/null
+++ b/tests/java5/generics/itds/StaticFieldITDOnGeneric.aj
@@ -0,0 +1,20 @@
+/*
+ * Static ITD of a field onto a generic type that utilises
+ * a type variable from the target generic
+ */
+import java.util.*;
+
+class MathUtils<N> {
+
+}
+
+public class StaticFieldITDOnGenericType {
+ public static void main(String[] argv) {
+ MathUtils<Integer>.n=42;
+ System.err.prinltn(">"+MathUtils<Integer>.n);
+ }
+}
+
+aspect X {
+ static E MathUtils<E>.n;
+}