diff options
author | aclement <aclement> | 2005-11-10 12:19:07 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-10 12:19:07 +0000 |
commit | f8fea133e17dd468f37792bf8aae3829f7130da9 (patch) | |
tree | da48e53da230c3c9a9a9f8aa2cc589404c8d8a18 /tests/java5 | |
parent | e433d6704633b9c3293f1b4c8507592ad987f2b8 (diff) | |
download | aspectj-f8fea133e17dd468f37792bf8aae3829f7130da9.tar.gz aspectj-f8fea133e17dd468f37792bf8aae3829f7130da9.zip |
more bridge method testcode.
Diffstat (limited to 'tests/java5')
-rw-r--r-- | tests/java5/generics/binaryBridging/TwoA.java | 8 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/TwoB.java | 7 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/TwoX.java | 3 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/readme.txt | 2 |
4 files changed, 19 insertions, 1 deletions
diff --git a/tests/java5/generics/binaryBridging/TwoA.java b/tests/java5/generics/binaryBridging/TwoA.java new file mode 100644 index 000000000..f375b3833 --- /dev/null +++ b/tests/java5/generics/binaryBridging/TwoA.java @@ -0,0 +1,8 @@ +import java.util.*; +import java.io.*; + +public class TwoA<T extends Serializable> { + + public Number firstMethod(T t) { return null;} + +} diff --git a/tests/java5/generics/binaryBridging/TwoB.java b/tests/java5/generics/binaryBridging/TwoB.java new file mode 100644 index 000000000..6f22f1df1 --- /dev/null +++ b/tests/java5/generics/binaryBridging/TwoB.java @@ -0,0 +1,7 @@ +import java.util.*; + +public class TwoB /* extends TwoA<String>*/ { + + public Integer firstMethod(String s) { return null;} + +} diff --git a/tests/java5/generics/binaryBridging/TwoX.java b/tests/java5/generics/binaryBridging/TwoX.java new file mode 100644 index 000000000..bf375d309 --- /dev/null +++ b/tests/java5/generics/binaryBridging/TwoX.java @@ -0,0 +1,3 @@ +public aspect TwoX { + declare parents: TwoB implements TwoA<String>; +} diff --git a/tests/java5/generics/binaryBridging/readme.txt b/tests/java5/generics/binaryBridging/readme.txt index bd84553ed..b5a28756e 100644 --- a/tests/java5/generics/binaryBridging/readme.txt +++ b/tests/java5/generics/binaryBridging/readme.txt @@ -2,4 +2,4 @@ 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. - +Test Two: Now the horrific method in the supertype is overridden by a combination of covariance and parameterization. |