]> source.dussan.org Git - aspectj.git/commitdiff
bridging tests.
authoraclement <aclement>
Mon, 7 Nov 2005 15:42:03 +0000 (15:42 +0000)
committeraclement <aclement>
Mon, 7 Nov 2005 15:42:03 +0000 (15:42 +0000)
tests/java5/generics/binaryBridging/OneA.java [new file with mode: 0644]
tests/java5/generics/binaryBridging/OneB.java [new file with mode: 0644]
tests/java5/generics/binaryBridging/OneX.java [new file with mode: 0644]
tests/java5/generics/binaryBridging/readme.txt [new file with mode: 0644]

diff --git a/tests/java5/generics/binaryBridging/OneA.java b/tests/java5/generics/binaryBridging/OneA.java
new file mode 100644 (file)
index 0000000..7a7a10f
--- /dev/null
@@ -0,0 +1,15 @@
+import java.util.*;
+
+public class OneA<T extends Number> {
+
+  public T firstMethod() { return null;}
+
+  public void secondMethod(T parm) { }
+  public void thirdMethod(T parm,T parm2) { }
+
+  public void fourthMethod(List<T> parm) {}
+
+  public T fifthMethod(T parm,List<T> parm2) { return null; }
+
+}
diff --git a/tests/java5/generics/binaryBridging/OneB.java b/tests/java5/generics/binaryBridging/OneB.java
new file mode 100644 (file)
index 0000000..8cbfe1c
--- /dev/null
@@ -0,0 +1,15 @@
+import java.util.*;
+
+public class OneB {
+
+  public Integer firstMethod() { return null;}
+
+  public void secondMethod(Integer parm) { }
+  public void thirdMethod(Integer parm,Integer parm2) { }
+
+  public void fourthMethod(List<Integer> parm) {}
+
+  public Integer fifthMethod(Integer parm,List<Integer> parm2) { return null; }
+
+}
diff --git a/tests/java5/generics/binaryBridging/OneX.java b/tests/java5/generics/binaryBridging/OneX.java
new file mode 100644 (file)
index 0000000..0d9ba25
--- /dev/null
@@ -0,0 +1,3 @@
+public aspect OneX {
+  declare parents: OneB implements OneA<Integer>;
+}
diff --git a/tests/java5/generics/binaryBridging/readme.txt b/tests/java5/generics/binaryBridging/readme.txt
new file mode 100644 (file)
index 0000000..bd84553
--- /dev/null
@@ -0,0 +1,5 @@
+Tests that if binary weaving then we create the right bridge methods.
+
+Test One: Using decp to wire together two types - a generic type that has a bunch of methods that use type variables and a second type that is told to implement a parameterization of the generic type with the decp.
+
+