You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConstructorDeclaration.java 392B

1234567891011121314151617
  1. import org.aspectj.testing.Tester;
  2. /** @testcase PR#33948 default constructor inter-type declaration */
  3. public class ConstructorDeclaration {
  4. public static void main(String[] args) {
  5. Tester.expectEvent("create");
  6. new ConstructorDeclaration();
  7. Tester.checkAllEvents();
  8. }
  9. }
  10. aspect A {
  11. ConstructorDeclaration.new() {
  12. Tester.event("create");
  13. }
  14. }