summaryrefslogtreecommitdiffstats
path: root/tests/bugs/accessMethods
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-05-28 20:49:54 +0000
committerjhugunin <jhugunin>2003-05-28 20:49:54 +0000
commit333ed13ecac59cd07c2356153b6e0e4204792cd8 (patch)
treeb469393c037e9463a5e43a383eb100f73ed6ad97 /tests/bugs/accessMethods
parenta0d2d2d0de4ab0e67a714d3fec46d96b268ca1e4 (diff)
downloadaspectj-333ed13ecac59cd07c2356153b6e0e4204792cd8.tar.gz
aspectj-333ed13ecac59cd07c2356153b6e0e4204792cd8.zip
Bugzilla Bug 38212
can not resolve this member warning This test currently passes, and therefore must be missing the bug; however, this is the closest I could come to the bug as reported.
Diffstat (limited to 'tests/bugs/accessMethods')
-rw-r--r--tests/bugs/accessMethods/p1/Base.java9
-rw-r--r--tests/bugs/accessMethods/p2/Derived.java21
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs/accessMethods/p1/Base.java b/tests/bugs/accessMethods/p1/Base.java
new file mode 100644
index 000000000..1d538b7d2
--- /dev/null
+++ b/tests/bugs/accessMethods/p1/Base.java
@@ -0,0 +1,9 @@
+package p1;
+
+public class Base {
+ protected int value=0;
+
+ protected String getName() {
+ return "Base";
+ }
+} \ No newline at end of file
diff --git a/tests/bugs/accessMethods/p2/Derived.java b/tests/bugs/accessMethods/p2/Derived.java
new file mode 100644
index 000000000..ab84cdf6a
--- /dev/null
+++ b/tests/bugs/accessMethods/p2/Derived.java
@@ -0,0 +1,21 @@
+package p2;
+
+public class Derived extends p1.Base {
+ public static void main(String[] args) {
+ Derived d = new Derived();
+ Inner i = d.new Inner();
+ System.out.println(i.getFullName());
+ }
+
+ class Inner {
+ public String getFullName() {
+ return Derived.this.getName() + ":" + getName() + ":" +
+ Derived.this.value + ":" + value;
+ }
+ }
+
+ static aspect A {
+ before(): withincode(* get*Name(..)) { }
+ }
+
+} \ No newline at end of file