summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-04 14:17:12 +0000
committeracolyer <acolyer>2005-08-04 14:17:12 +0000
commit64db5cf905f9473c2920bc5a28c96d19d8ba9461 (patch)
treec1cf51d23736e8b671ebb647c12aa750e11f329e /tests/java5/generics
parent0368e8e8bdd474318e287163b13eef049b1ea308 (diff)
downloadaspectj-64db5cf905f9473c2920bc5a28c96d19d8ba9461.tar.gz
aspectj-64db5cf905f9473c2920bc5a28c96d19d8ba9461.zip
last couple of withincode tests - this completes the testing and implementation of withincode with generic and parameterized types
Diffstat (limited to 'tests/java5/generics')
-rw-r--r--tests/java5/generics/pointcuts/WithinCodePointcutMatchingParamAndReturnTypes.aj4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/java5/generics/pointcuts/WithinCodePointcutMatchingParamAndReturnTypes.aj b/tests/java5/generics/pointcuts/WithinCodePointcutMatchingParamAndReturnTypes.aj
index a57e9f75d..6ed0828dc 100644
--- a/tests/java5/generics/pointcuts/WithinCodePointcutMatchingParamAndReturnTypes.aj
+++ b/tests/java5/generics/pointcuts/WithinCodePointcutMatchingParamAndReturnTypes.aj
@@ -23,6 +23,10 @@ public aspect WithinCodePointcutMatchingParamAndReturnTypes {
: "withincode and interface control test";
declare warning : withincode(void UglyBuilding.iSee(Object))
: "should be no join points for bridge methods";
+
+ // rule 6) parameterized types in return and args can be matched exactly
+ declare warning : withincode(Generic.new(List<String>)) : "match on parameterized args";
+ declare warning : withincode(List<Number> *(..)) : "match on parameterized return type";
}