summaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-07-12 14:23:35 +0000
committeracolyer <acolyer>2005-07-12 14:23:35 +0000
commit69bfddbefad71e1ca45eba983668a0c066d848ea (patch)
treec0e67dd6811f931672d5f22fd56a9e4d151a5f99 /tests/src
parent6a938aa675906c0fc5698208288d564f983fc3ae (diff)
downloadaspectj-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.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml8
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 -->
<!-- ============================================================== -->