Browse Source

@testcase PR#33948 default constructor inter-type declaration

conflicts with compiler-generated constructor
tags/v1_1_0_RC1
wisberg 21 years ago
parent
commit
6a8fa08bcb
2 changed files with 23 additions and 0 deletions
  1. 6
    0
      tests/ajcTestsFailing.xml
  2. 17
    0
      tests/bugs/ConstructorDeclaration.java

+ 6
- 0
tests/ajcTestsFailing.xml View File

</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>

+ 17
- 0
tests/bugs/ConstructorDeclaration.java View File


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

Loading…
Cancel
Save