conflicts with compiler-generated constructortags/v1_1_0_RC1
</compile> | </compile> | ||||
</ajc-test> | </ajc-test> | ||||
<ajc-test dir="bugs" pr="33948" | |||||
title="default constructor inter-type declaration"> | |||||
<compile files="ConstructorDeclaration.java"/> | |||||
<run class="ConstructorDeclaration"/> | |||||
</ajc-test> | |||||
</suite> | </suite> |
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"); | |||||
} | |||||
} |