]> source.dussan.org Git - aspectj.git/commitdiff
307120: field accesses in itds of private fields
authoraclement <aclement>
Mon, 5 Apr 2010 19:38:31 +0000 (19:38 +0000)
committeraclement <aclement>
Mon, 5 Apr 2010 19:38:31 +0000 (19:38 +0000)
tests/multiIncremental/pr307120/base/src/A.java [new file with mode: 0644]
tests/multiIncremental/pr307120/base/src/Test.java [new file with mode: 0644]
tests/multiIncremental/pr307120/inc1/src/Test.java [new file with mode: 0644]

diff --git a/tests/multiIncremental/pr307120/base/src/A.java b/tests/multiIncremental/pr307120/base/src/A.java
new file mode 100644 (file)
index 0000000..af1ba20
--- /dev/null
@@ -0,0 +1,5 @@
+class A {
+        private
+        int foo;
+        int goo;
+}
diff --git a/tests/multiIncremental/pr307120/base/src/Test.java b/tests/multiIncremental/pr307120/base/src/Test.java
new file mode 100644 (file)
index 0000000..504f091
--- /dev/null
@@ -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;
+//      }
+}
diff --git a/tests/multiIncremental/pr307120/inc1/src/Test.java b/tests/multiIncremental/pr307120/inc1/src/Test.java
new file mode 100644 (file)
index 0000000..504f091
--- /dev/null
@@ -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;
+//      }
+}