diff options
author | acolyer <acolyer> | 2005-07-12 14:23:35 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-07-12 14:23:35 +0000 |
commit | 69bfddbefad71e1ca45eba983668a0c066d848ea (patch) | |
tree | c0e67dd6811f931672d5f22fd56a9e4d151a5f99 /tests/src | |
parent | 6a938aa675906c0fc5698208288d564f983fc3ae (diff) | |
download | aspectj-69bfddbefad71e1ca45eba983668a0c066d848ea.tar.gz aspectj-69bfddbefad71e1ca45eba983668a0c066d848ea.zip |
test that a signature with a generic declaring type does not match on the erasure of the parameter types
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java b/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java index 02a493639..08eb412ec 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/GenericsTests.java @@ -188,6 +188,10 @@ 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"); + } + // --- helpers // Check the signature attribute on a class is correct diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 71593277b..8e98d67b9 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -2472,12 +2472,18 @@ </compile> </ajc-test> - <ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw signature matching"> + <ajc-test dir="java5/generics/pointcuts" title="execution pcd with raw signature matching"> <compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,RawSignatureMatching.aj" options="-1.5"> <message kind="warning" line="4" text="execution(* GenericInterface.asInt(Number))"/> <message kind="warning" line="5" text="execution(* GenericInterface.asInt(Number))"/> </compile> </ajc-test> + + <ajc-test dir="java5/generics/pointcuts" title="execution pcd with generic declaring type and erased parameter types"> + <compile files="GenericInterface.java,ConcreteImplementingClass.java,GenericImplementingClass.java,GenericDeclaringTypeWithParameterErasure.aj" options="-1.5"> + </compile> + </ajc-test> + <!-- end of generics and pointcuts tests --> <!-- ============================================================== --> |