diff options
author | wisberg <wisberg> | 2003-03-06 07:51:54 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-03-06 07:51:54 +0000 |
commit | 6a8fa08bcb628ad06c1acdb7f6d8a4e7ea73bc79 (patch) | |
tree | 474ca92eba54c3ee8ba4b8cbeed5b34e20d602d5 /tests | |
parent | 9715203947675c89bff540ac9cfc9bac1574e0e2 (diff) | |
download | aspectj-6a8fa08bcb628ad06c1acdb7f6d8a4e7ea73bc79.tar.gz aspectj-6a8fa08bcb628ad06c1acdb7f6d8a4e7ea73bc79.zip |
@testcase PR#33948 default constructor inter-type declaration
conflicts with compiler-generated constructor
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ajcTestsFailing.xml | 6 | ||||
-rw-r--r-- | tests/bugs/ConstructorDeclaration.java | 17 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/ajcTestsFailing.xml b/tests/ajcTestsFailing.xml index cec2b7a68..c87051140 100644 --- a/tests/ajcTestsFailing.xml +++ b/tests/ajcTestsFailing.xml @@ -59,4 +59,10 @@ </compile> </ajc-test> + <ajc-test dir="bugs" pr="33948" + title="default constructor inter-type declaration"> + <compile files="ConstructorDeclaration.java"/> + <run class="ConstructorDeclaration"/> + </ajc-test> + </suite> diff --git a/tests/bugs/ConstructorDeclaration.java b/tests/bugs/ConstructorDeclaration.java new file mode 100644 index 000000000..df45cb13d --- /dev/null +++ b/tests/bugs/ConstructorDeclaration.java @@ -0,0 +1,17 @@ + +import org.aspectj.testing.Tester; + +/** @testcase PR#33948 default constructor inter-type declaration */ +public class ConstructorDeclaration { + public static void main(String[] args) { + Tester.expectEvent("create"); + new ConstructorDeclaration(); + Tester.checkAllEvents(); + } +} + +aspect A { + ConstructorDeclaration.new() { + Tester.event("create"); + } +}
\ No newline at end of file |