diff options
author | aclement <aclement> | 2005-11-07 15:42:03 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-07 15:42:03 +0000 |
commit | ad6c637955018901e060fb79966acddb89743227 (patch) | |
tree | cca654edf295cdf8b0983f84d0e5f420d9eefdd5 /tests/java5 | |
parent | d49f6e706343426a09129dab321a4a7ff80491d8 (diff) | |
download | aspectj-ad6c637955018901e060fb79966acddb89743227.tar.gz aspectj-ad6c637955018901e060fb79966acddb89743227.zip |
bridging tests.
Diffstat (limited to 'tests/java5')
-rw-r--r-- | tests/java5/generics/binaryBridging/OneA.java | 15 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/OneB.java | 15 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/OneX.java | 3 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/readme.txt | 5 |
4 files changed, 38 insertions, 0 deletions
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<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 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<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 index 000000000..0d9ba25a7 --- /dev/null +++ b/tests/java5/generics/binaryBridging/OneX.java @@ -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 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. + + |