diff options
author | jhugunin <jhugunin> | 2003-05-28 20:49:54 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-05-28 20:49:54 +0000 |
commit | 333ed13ecac59cd07c2356153b6e0e4204792cd8 (patch) | |
tree | b469393c037e9463a5e43a383eb100f73ed6ad97 /tests/bugs/accessMethods | |
parent | a0d2d2d0de4ab0e67a714d3fec46d96b268ca1e4 (diff) | |
download | aspectj-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.java | 9 | ||||
-rw-r--r-- | tests/bugs/accessMethods/p2/Derived.java | 21 |
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 |