From: aclement Date: Mon, 7 Nov 2005 15:42:03 +0000 (+0000) Subject: bridging tests. X-Git-Tag: V1_5_0RC1~231 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad6c637955018901e060fb79966acddb89743227;p=aspectj.git bridging tests. --- diff --git a/tests/java5/generics/binaryBridging/OneA.java b/tests/java5/generics/binaryBridging/OneA.java new file mode 100644 index 000000000..7a7a10fc2 --- /dev/null +++ b/tests/java5/generics/binaryBridging/OneA.java @@ -0,0 +1,15 @@ +import java.util.*; + +public class OneA { + + public T firstMethod() { return null;} + + public void secondMethod(T parm) { } + + public void thirdMethod(T parm,T parm2) { } + + public void fourthMethod(List parm) {} + + public T fifthMethod(T parm,List parm2) { return null; } + +} diff --git a/tests/java5/generics/binaryBridging/OneB.java b/tests/java5/generics/binaryBridging/OneB.java new file mode 100644 index 000000000..8cbfe1c7c --- /dev/null +++ b/tests/java5/generics/binaryBridging/OneB.java @@ -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 parm) {} + + public Integer fifthMethod(Integer parm,List parm2) { return null; } + +} diff --git a/tests/java5/generics/binaryBridging/OneX.java b/tests/java5/generics/binaryBridging/OneX.java new file mode 100644 index 000000000..0d9ba25a7 --- /dev/null +++ b/tests/java5/generics/binaryBridging/OneX.java @@ -0,0 +1,3 @@ +public aspect OneX { + declare parents: OneB implements OneA; +} diff --git a/tests/java5/generics/binaryBridging/readme.txt b/tests/java5/generics/binaryBridging/readme.txt new file mode 100644 index 000000000..bd84553ed --- /dev/null +++ b/tests/java5/generics/binaryBridging/readme.txt @@ -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. + +