Browse Source

more binary bridging testcode

tags/V1_5_0RC1
aclement 18 years ago
parent
commit
e98ad2257a

+ 3
- 0
tests/java5/generics/binaryBridging/ThreeA.java View File

@@ -0,0 +1,3 @@
public interface ThreeA {
public Number m();
}

+ 3
- 0
tests/java5/generics/binaryBridging/ThreeB.java View File

@@ -0,0 +1,3 @@
public abstract class ThreeB {
public abstract Double m();
}

+ 3
- 0
tests/java5/generics/binaryBridging/ThreeX.java View File

@@ -0,0 +1,3 @@
public aspect ThreeX {
declare parents: ThreeB implements ThreeA;
}

+ 2
- 0
tests/java5/generics/binaryBridging/readme.txt View File

@@ -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.

Loading…
Cancel
Save