aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr71159/PrivateITD.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs150/pr71159/PrivateITD.aj')
-rw-r--r--tests/bugs150/pr71159/PrivateITD.aj34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs150/pr71159/PrivateITD.aj b/tests/bugs150/pr71159/PrivateITD.aj
new file mode 100644
index 000000000..e4649d015
--- /dev/null
+++ b/tests/bugs150/pr71159/PrivateITD.aj
@@ -0,0 +1,34 @@
+class A {
+
+
+
+}
+
+class B extends A {
+
+ protected void foo() {}
+
+}
+
+class C extends B {}
+
+
+class D extends C {
+
+ public void foo() {}
+
+}
+
+aspect X {
+
+ private void A.foo() {}
+
+ void bar() {
+ D d = new D();
+ d.foo();
+ }
+
+ declare warning : call(* B.foo()) : "should match";
+ declare warning : call(* A.foo()) : "should not match";
+
+} \ No newline at end of file