aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features153/jdtlikehandleprovider/A11.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features153/jdtlikehandleprovider/A11.aj')
-rw-r--r--tests/features153/jdtlikehandleprovider/A11.aj18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/features153/jdtlikehandleprovider/A11.aj b/tests/features153/jdtlikehandleprovider/A11.aj
new file mode 100644
index 000000000..6a15c9ea3
--- /dev/null
+++ b/tests/features153/jdtlikehandleprovider/A11.aj
@@ -0,0 +1,18 @@
+package pkg;
+
+public aspect A11 {
+
+ declare warning: call(* C.setX(..)): "Illegal call.";
+ declare warning : execution(* C.setX(..)) : "blah";
+}
+
+class C {
+
+ public void setX() {
+ }
+
+ public void method() {
+ new C().setX();
+ }
+
+}