From 262cb6dd7fa047f97b9c76e7425964ae542b147c Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 5 May 2009 23:40:59 +0000 Subject: 275032: test and fix: itd of no-arg constructor should overwrite a generated default constructor --- tests/bugs165/pr275032/A.java | 7 +++++++ tests/bugs165/pr275032/X.java | 6 ++++++ tests/bugs165/pr275032/c2/A.java | 9 +++++++++ tests/bugs165/pr275032/c2/X.java | 4 ++++ 4 files changed, 26 insertions(+) create mode 100644 tests/bugs165/pr275032/A.java create mode 100644 tests/bugs165/pr275032/X.java create mode 100644 tests/bugs165/pr275032/c2/A.java create mode 100644 tests/bugs165/pr275032/c2/X.java (limited to 'tests/bugs165') 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");} + +} -- cgit v1.2.3