From: aclement Date: Fri, 27 Feb 2009 19:57:17 +0000 (+0000) Subject: 266420: rogue unused private warning X-Git-Tag: pre268419~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7da66c129c697d2d818da43649be905940fe5130;p=aspectj.git 266420: rogue unused private warning --- diff --git a/tests/bugs164/pr266420/A.java b/tests/bugs164/pr266420/A.java new file mode 100644 index 000000000..bde83bce5 --- /dev/null +++ b/tests/bugs164/pr266420/A.java @@ -0,0 +1,9 @@ +public class A { + private int i; +} + +privileged aspect X { + public int A.foo() { + return i; + } +} diff --git a/tests/bugs164/pr266420/B.java b/tests/bugs164/pr266420/B.java new file mode 100644 index 000000000..42297637c --- /dev/null +++ b/tests/bugs164/pr266420/B.java @@ -0,0 +1,3 @@ +public class B { + private int i; +} diff --git a/tests/bugs164/pr266420/C.java b/tests/bugs164/pr266420/C.java new file mode 100644 index 000000000..b090efbc9 --- /dev/null +++ b/tests/bugs164/pr266420/C.java @@ -0,0 +1,10 @@ +public class C { + private int i; + private int j; +} + +privileged aspect X { + public void C.m() { + i = 5; + } +}