diff options
author | aclement <aclement> | 2009-05-05 23:40:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-05-05 23:40:59 +0000 |
commit | 262cb6dd7fa047f97b9c76e7425964ae542b147c (patch) | |
tree | 4a10009ded5ecffa8120cd3bb323699d182ab80d /tests/bugs165 | |
parent | f9578daa1e5153f241aee8b640d58351db26241f (diff) | |
download | aspectj-262cb6dd7fa047f97b9c76e7425964ae542b147c.tar.gz aspectj-262cb6dd7fa047f97b9c76e7425964ae542b147c.zip |
275032: test and fix: itd of no-arg constructor should overwrite a generated default constructor
Diffstat (limited to 'tests/bugs165')
-rw-r--r-- | tests/bugs165/pr275032/A.java | 7 | ||||
-rw-r--r-- | tests/bugs165/pr275032/X.java | 6 | ||||
-rw-r--r-- | tests/bugs165/pr275032/c2/A.java | 9 | ||||
-rw-r--r-- | tests/bugs165/pr275032/c2/X.java | 4 |
4 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs165/pr275032/A.java b/tests/bugs165/pr275032/A.java new file mode 100644 index 000000000..3b2db0089 --- /dev/null +++ b/tests/bugs165/pr275032/A.java @@ -0,0 +1,7 @@ +public class A { + int i = 5; + + public static void main(String[] argv) { + new A(); + } +} diff --git a/tests/bugs165/pr275032/X.java b/tests/bugs165/pr275032/X.java new file mode 100644 index 000000000..5556cf042 --- /dev/null +++ b/tests/bugs165/pr275032/X.java @@ -0,0 +1,6 @@ +import org.aspectj.lang.annotation.*; +aspect X { + @SuppressAjWarnings + public A.new() {System.out.println("itd ctor");} + +} diff --git a/tests/bugs165/pr275032/c2/A.java b/tests/bugs165/pr275032/c2/A.java new file mode 100644 index 000000000..8f7645bec --- /dev/null +++ b/tests/bugs165/pr275032/c2/A.java @@ -0,0 +1,9 @@ +public class A { + public A() { + System.out.println("real default ctor"); + } + + public static void main(String[] argv) { + new A(); + } +} diff --git a/tests/bugs165/pr275032/c2/X.java b/tests/bugs165/pr275032/c2/X.java new file mode 100644 index 000000000..0c560d6c0 --- /dev/null +++ b/tests/bugs165/pr275032/c2/X.java @@ -0,0 +1,4 @@ +aspect X { + public A.new() {System.out.println("itd");} + +} |