]> source.dussan.org Git - aspectj.git/commitdiff
266420: rogue unused private warning
authoraclement <aclement>
Fri, 27 Feb 2009 19:57:17 +0000 (19:57 +0000)
committeraclement <aclement>
Fri, 27 Feb 2009 19:57:17 +0000 (19:57 +0000)
tests/bugs164/pr266420/A.java [new file with mode: 0644]
tests/bugs164/pr266420/B.java [new file with mode: 0644]
tests/bugs164/pr266420/C.java [new file with mode: 0644]

diff --git a/tests/bugs164/pr266420/A.java b/tests/bugs164/pr266420/A.java
new file mode 100644 (file)
index 0000000..bde83bc
--- /dev/null
@@ -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 (file)
index 0000000..4229763
--- /dev/null
@@ -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 (file)
index 0000000..b090efb
--- /dev/null
@@ -0,0 +1,10 @@
+public class C {
+  private int i;
+  private int j;
+}
+
+privileged aspect X {
+  public void C.m() {
+    i = 5;
+  }
+}