From 7da66c129c697d2d818da43649be905940fe5130 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 27 Feb 2009 19:57:17 +0000 Subject: [PATCH] 266420: rogue unused private warning --- tests/bugs164/pr266420/A.java | 9 +++++++++ tests/bugs164/pr266420/B.java | 3 +++ tests/bugs164/pr266420/C.java | 10 ++++++++++ 3 files changed, 22 insertions(+) create mode 100644 tests/bugs164/pr266420/A.java create mode 100644 tests/bugs164/pr266420/B.java create mode 100644 tests/bugs164/pr266420/C.java 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; + } +} -- 2.39.5