aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hasmember/HasMethodViaITD.aj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-21 19:53:30 +0000
committeracolyer <acolyer>2005-08-21 19:53:30 +0000
commit262edc95da3a65bb4c86024abf531ac0ddf8bd69 (patch)
tree8c42083fa9677838168e3ddc6a8fd5ad7b1f8e7e /tests/hasmember/HasMethodViaITD.aj
parentce7e64ba610a2957b81d373986668c6cf60b8722 (diff)
downloadaspectj-262edc95da3a65bb4c86024abf531ac0ddf8bd69.tar.gz
aspectj-262edc95da3a65bb4c86024abf531ac0ddf8bd69.zip
hasmember (hasmethod / hasfield) tests - not linked into main suite at this point in time
Diffstat (limited to 'tests/hasmember/HasMethodViaITD.aj')
-rw-r--r--tests/hasmember/HasMethodViaITD.aj17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hasmember/HasMethodViaITD.aj b/tests/hasmember/HasMethodViaITD.aj
new file mode 100644
index 000000000..5573675d5
--- /dev/null
+++ b/tests/hasmember/HasMethodViaITD.aj
@@ -0,0 +1,17 @@
+public aspect HasMethodViaITD {
+
+ declare parents : hasmethod(* foo()) implements I;
+
+ // C gets foo via ITD
+ public void C.foo() {}
+
+ declare warning : execution(* I+.bar()) : "hasmethod matched on ITD ok";
+}
+
+interface I {}
+
+class C {
+
+ void bar() {}
+
+} \ No newline at end of file