diff options
Diffstat (limited to 'tests/bugs/accessMethods/p2/Derived.java')
-rw-r--r-- | tests/bugs/accessMethods/p2/Derived.java | 21 |
1 files changed, 21 insertions, 0 deletions
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 |