浏览代码

@testcase PR#33948 default constructor inter-type declaration

conflicts with compiler-generated constructor
tags/v1_1_0_RC1
wisberg 21 年前
父节点
当前提交
6a8fa08bcb
共有 2 个文件被更改,包括 23 次插入0 次删除
  1. 6
    0
      tests/ajcTestsFailing.xml
  2. 17
    0
      tests/bugs/ConstructorDeclaration.java

+ 6
- 0
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>

+ 17
- 0
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");
}
}

正在加载...
取消
保存