您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }