Browse Source

more tests and refinement of existing tests

tags/V1_5_0M3
acolyer 19 years ago
parent
commit
651f729a3e

+ 4
- 4
tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java View File

@@ -281,7 +281,7 @@ public class GenericsTests extends XMLBasedAjcTestCase {
// public void testStaticInitializationWithGenericTypes() {
// runTest("staticinitialization with generic types");
// }
//
// public void testStaticInitializationWithGenericTypesAdvanced() {
// runTest("staticinitialization with generic types - advanced");
// }
@@ -294,9 +294,9 @@ public class GenericsTests extends XMLBasedAjcTestCase {
runTest("execution pcd with raw signature matching");
}
public void testExecutionWithGenericDeclaringTypeAndErasedParameterTypes() {
runTest("execution pcd with generic declaring type and erased parameter types");
}
// public void testExecutionWithGenericDeclaringTypeAndErasedParameterTypes() {
// runTest("execution pcd with generic declaring type and erased parameter types");
// }
// not passing yet...
// public void testExecutionWithGenericSignature() {

+ 5
- 0
tests/src/org/aspectj/systemtest/ajc150/ajc150.xml View File

@@ -2536,6 +2536,8 @@
<message kind="warning" line="1" text="clinit(GenericInterface&lt;Double&gt;+)"/>
<message kind="warning" line="3" text="clinit(GenericInterface&lt;Double&gt;+)"/>
<message kind="warning" line="3" text="clinit(GenericImplementingClass&lt;Double&gt;+)"/>
<message kind="warning" line="15" text="Type java.lang.String does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericInterface"/>
<message kind="warning" line="19" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericInterface requires 1 parameter(s)"/>
</compile>
</ajc-test>
@@ -2544,6 +2546,9 @@
<message kind="warning" line="1" text="one generic param, correct bounds"/>
<message kind="warning" line="1" text="doesn't matter what type variable name you use"/>
<message kind="warning" line="1" text="works with classes too"/>
<message kind="warning" line="4" text="Type T does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericInterface"/>
<message kind="warning" line="20" text="Type pattern does not match because the wrong number of type parameters are specified: Type GenericImplementingClass requires 1 parameter(s)"/>
<message kind="warning" line="24" text="Type N extends java.lang.Name &amp; java.lang.Comparable does not meet the specification for type parameter 1 (N extends java.lang.Number) in generic type GenericImplementingClass"/>
</compile>
</ajc-test>

Loading…
Cancel
Save