diff options
author | acolyer <acolyer> | 2005-07-28 10:54:17 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-07-28 10:54:17 +0000 |
commit | de2890a546b560dbb09624953501bf1399f43254 (patch) | |
tree | b9903a7360e15f0145294ee9bd1292fcf9cfe1c2 /tests | |
parent | 72b2a3a2707c621003d8e2330739db65dee99bea (diff) | |
download | aspectj-de2890a546b560dbb09624953501bf1399f43254.tar.gz aspectj-de2890a546b560dbb09624953501bf1399f43254.zip |
updates to tests in accordance with generics simplification plan
Diffstat (limited to 'tests')
4 files changed, 29 insertions, 27 deletions
diff --git a/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj b/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj index 54b538491..6f8b25c4f 100644 --- a/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj +++ b/tests/java5/generics/pointcuts/ParameterizedTypesInAnnotationPatterns.aj @@ -3,8 +3,6 @@ import java.util.List; public aspect ParameterizedTypesInAnnotationPatterns { // CE - not an annotation type pointcut simple() : staticinitialization(@List<String> String); - // CE - not an annotation type - pointcut generic() : staticinitialization<T>(@List<T> Class<T>); // no CE, good enough for now? may improve error reporting for this later pointcut combined() : staticinitialization(@(Foo || List<String>) String); diff --git a/tests/java5/generics/pointcuts/StaticInitializationWithParameterizedTypes.aj b/tests/java5/generics/pointcuts/StaticInitializationWithParameterizedTypes.aj index 9add7d6dc..97b167c36 100644 --- a/tests/java5/generics/pointcuts/StaticInitializationWithParameterizedTypes.aj +++ b/tests/java5/generics/pointcuts/StaticInitializationWithParameterizedTypes.aj @@ -2,11 +2,11 @@ public aspect StaticInitializationWithParameterizedTypes { // CE line 4 pointcut badStaticInit() : staticinitialization(GenericInterface<Double>); - + // CE line 6 pointcut allowedStaticInit() : staticinitialization(GenericInterface<Double>+); // CE line 9 pointcut badStaticInitClass() : staticinitialization(GenericImplementingClass<Double>); - + // CE line 10 pointcut allowedStaticInitClass() : staticinitialization(GenericImplementingClass<Double>+); }
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java b/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java index 589e0cf84..f022a11ea 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java @@ -44,22 +44,22 @@ public class GenericsTests extends XMLBasedAjcTestCase { * - @Foo<T> should fail PASS * - @Foo<String> should fail PASS * - @(Foo || Bar<T>) should fail DEFERRED (not critical) - * staticinitialization - * - error on parameterized type PASS - * - permit parameterized type + PASS - * - matching with parameterized type + - * - wrong number of parameters in parameterized type PASS - * - generic type with one type parameter - * - generic type with n type parameters - * - generic type with bounds [extends, extends + i/f's] - * - generic type with wrong number of type params - * - wildcards in bounds + * staticinitialization PASS + * - error on parameterized type PASS N/A + * - permit parameterized type + PASS N/A + * - matching with parameterized type + N/A + * - wrong number of parameters in parameterized type PASS N/A + * - generic type with one type parameter N/A + * - generic type with n type parameters N/A + * - generic type with bounds [extends, extends + i/f's] N/A + * - generic type with wrong number of type params N/A + * - wildcards in bounds N/A * within - * - as above, but allows parameterized type - * - wildcards in type parameters + * - as above, but allows parameterized type (disallowed is simplified plan) + * - wildcards in type parameters N/A * this * - no type vars - * - parameterized types + * - parameterized types - disallowed in simplification plan * - implements * - instanceof * target @@ -282,14 +282,17 @@ public class GenericsTests extends XMLBasedAjcTestCase { runTest("staticinitialization and parameterized types"); } - public void testStaticInitializationMatchingWithParameterizedTypes() { - runTest("staticinitialization and parameterized type matching"); - } + // no longer a valid test with generics simplication +// public void testStaticInitializationMatchingWithParameterizedTypes() { +// runTest("staticinitialization and parameterized type matching"); +// } - public void testStaticInitializationWithGenericTypes() { - runTest("staticinitialization with generic types"); - } - +// no longer a valid test in simplified design +// public void testStaticInitializationWithGenericTypes() { +// runTest("staticinitialization with generic types"); +// } + +// no longer a valid test in simplified design // public void testStaticInitializationWithGenericTypesAdvanced() { // runTest("staticinitialization with generic types - advanced"); // } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 5e0101ec1..115a04e99 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -2533,14 +2533,15 @@ <ajc-test dir="java5/generics/pointcuts" title="annotation patterns with parameterized types"> <compile files="ParameterizedTypesInAnnotationPatterns.aj" options="-1.5"> <message kind="error" line="5" text="is not an annotation type"/> - <message kind="error" line="7" text="is not an annotation type"/> </compile> </ajc-test> <ajc-test dir="java5/generics/pointcuts" title="staticinitialization and parameterized types"> <compile files="GenericInterface.java,GenericImplementingClass.java,StaticInitializationWithParameterizedTypes.aj" options="-1.5"> - <message kind="error" line="4" text="no static initialization join points for parameterized types, use generic or raw type instead"/> - <message kind="error" line="9" text="no static initialization join points for parameterized types, use generic or raw type instead"/> + <message kind="error" line="4" text="no static initialization join points for parameterized types, use raw type instead"/> + <message kind="error" line="6" text="no static initialization join points for parameterized types, use raw type instead"/> + <message kind="error" line="9" text="no static initialization join points for parameterized types, use raw type instead"/> + <message kind="error" line="11" text="no static initialization join points for parameterized types, use raw type instead"/> </compile> </ajc-test> |