aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169
diff options
context:
space:
mode:
authoraclement <aclement>2010-03-25 22:01:16 +0000
committeraclement <aclement>2010-03-25 22:01:16 +0000
commitd55213952a178932984d98daec65b1d6034427ad (patch)
tree973884a7ec6d4c658f16db2f4fd191be542c6100 /tests/bugs169
parent749078d83c99b0f19f4a3060460a17730faa97f9 (diff)
downloadaspectj-d55213952a178932984d98daec65b1d6034427ad.tar.gz
aspectj-d55213952a178932984d98daec65b1d6034427ad.zip
307120: field accesses in itds of private fields
Diffstat (limited to 'tests/bugs169')
-rw-r--r--tests/bugs169/pr307120/A.java5
-rw-r--r--tests/bugs169/pr307120/Test.java14
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs169/pr307120/A.java b/tests/bugs169/pr307120/A.java
new file mode 100644
index 000000000..643073bb9
--- /dev/null
+++ b/tests/bugs169/pr307120/A.java
@@ -0,0 +1,5 @@
+class A {
+ private
+ int foo;
+ int goo;
+}
diff --git a/tests/bugs169/pr307120/Test.java b/tests/bugs169/pr307120/Test.java
new file mode 100644
index 000000000..a1dc40a44
--- /dev/null
+++ b/tests/bugs169/pr307120/Test.java
@@ -0,0 +1,14 @@
+privileged aspect Test {
+
+ before(): get(* foo) {}
+
+ before(): get(* goo) {}
+
+ public int A.getFoo() {
+ return foo;
+ }
+
+ public int A.getGoo() {
+ return goo;
+ }
+}