diff options
author | aclement <aclement> | 2005-11-14 16:51:22 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-14 16:51:22 +0000 |
commit | e98ad2257a6cd99607f50646d9757ab25c150c54 (patch) | |
tree | f1956a82ce9a241a1a30a9594eb9d4a10ac8a270 /tests | |
parent | 06d8ef35d6035a19671504d21907368150f0aa2c (diff) | |
download | aspectj-e98ad2257a6cd99607f50646d9757ab25c150c54.tar.gz aspectj-e98ad2257a6cd99607f50646d9757ab25c150c54.zip |
more binary bridging testcode
Diffstat (limited to 'tests')
-rw-r--r-- | tests/java5/generics/binaryBridging/ThreeA.java | 3 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/ThreeB.java | 3 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/ThreeX.java | 3 | ||||
-rw-r--r-- | tests/java5/generics/binaryBridging/readme.txt | 2 |
4 files changed, 11 insertions, 0 deletions
diff --git a/tests/java5/generics/binaryBridging/ThreeA.java b/tests/java5/generics/binaryBridging/ThreeA.java new file mode 100644 index 000000000..440f748bb --- /dev/null +++ b/tests/java5/generics/binaryBridging/ThreeA.java @@ -0,0 +1,3 @@ +public interface ThreeA { + public Number m(); +} diff --git a/tests/java5/generics/binaryBridging/ThreeB.java b/tests/java5/generics/binaryBridging/ThreeB.java new file mode 100644 index 000000000..3d89bc61b --- /dev/null +++ b/tests/java5/generics/binaryBridging/ThreeB.java @@ -0,0 +1,3 @@ +public abstract class ThreeB { + public abstract Double m(); +} diff --git a/tests/java5/generics/binaryBridging/ThreeX.java b/tests/java5/generics/binaryBridging/ThreeX.java new file mode 100644 index 000000000..b402a9f34 --- /dev/null +++ b/tests/java5/generics/binaryBridging/ThreeX.java @@ -0,0 +1,3 @@ +public aspect ThreeX { + declare parents: ThreeB implements ThreeA; +} diff --git a/tests/java5/generics/binaryBridging/readme.txt b/tests/java5/generics/binaryBridging/readme.txt index b5a28756e..10408c937 100644 --- a/tests/java5/generics/binaryBridging/readme.txt +++ b/tests/java5/generics/binaryBridging/readme.txt @@ -3,3 +3,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. Test Two: Now the horrific method in the supertype is overridden by a combination of covariance and parameterization. + +Test Three: inspired by a post to the list. The abstract method in the subclass should have a bridge method generated alongside it. |