aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs164/pr266420
diff options
context:
space:
mode:
authoraclement <aclement>2009-02-27 19:57:17 +0000
committeraclement <aclement>2009-02-27 19:57:17 +0000
commit7da66c129c697d2d818da43649be905940fe5130 (patch)
treee3009ec20d2356ec547959036e3aa95d5d940156 /tests/bugs164/pr266420
parent9b5be6ed58681b0b994ba73bd79b91280a3214cd (diff)
downloadaspectj-7da66c129c697d2d818da43649be905940fe5130.tar.gz
aspectj-7da66c129c697d2d818da43649be905940fe5130.zip
266420: rogue unused private warning
Diffstat (limited to 'tests/bugs164/pr266420')
-rw-r--r--tests/bugs164/pr266420/A.java9
-rw-r--r--tests/bugs164/pr266420/B.java3
-rw-r--r--tests/bugs164/pr266420/C.java10
3 files changed, 22 insertions, 0 deletions
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;
+ }
+}