diff options
author | Andy Clement <aclement@gopivotal.com> | 2013-07-22 14:47:02 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-07-22 14:50:14 -0700 |
commit | 302c14ee680d5782cba619d8cc748e60afd09561 (patch) | |
tree | 9c023bcb46b7165866dc8a81e23c15df58249dcd /tests/bugs174 | |
parent | e6cb5086ad825e8df5f182aa0c5586b0b4af9d21 (diff) | |
download | aspectj-302c14ee680d5782cba619d8cc748e60afd09561.tar.gz aspectj-302c14ee680d5782cba619d8cc748e60afd09561.zip |
Bug413378: ctor itd super call: test and fixAS_BETA_JAVA8_CREATED
Diffstat (limited to 'tests/bugs174')
-rw-r--r-- | tests/bugs174/pr413378/Code.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/bugs174/pr413378/Code.java b/tests/bugs174/pr413378/Code.java new file mode 100644 index 000000000..f591dac45 --- /dev/null +++ b/tests/bugs174/pr413378/Code.java @@ -0,0 +1,38 @@ +class Child extends Parent{ + + public String mParent = "John"; + + public Child(String parent) { + this.mParent = parent; + } + + public String getParent() + { + return this.mParent; + } +} + +class Parent { + private String mName = "John"; + private int mAge = 50; + + public int getAge(){ + return mAge; + } +} + +aspect MyTest { + + public Child.new(String parent, int age) { + this(parent); + + System.out.println("Get Age:" + super.getAge()); + System.out.println("Child Name:" + this.mParent); + } +} + +public class Code { + public static void main(String []argv) { + new Child("Andy",5); + } +} |