]> source.dussan.org Git - aspectj.git/commitdiff
@testcase PR#33948 default constructor inter-type declaration
authorwisberg <wisberg>
Thu, 6 Mar 2003 07:51:54 +0000 (07:51 +0000)
committerwisberg <wisberg>
Thu, 6 Mar 2003 07:51:54 +0000 (07:51 +0000)
conflicts with compiler-generated constructor

tests/ajcTestsFailing.xml
tests/bugs/ConstructorDeclaration.java [new file with mode: 0644]

index cec2b7a687b36a6026d06d8b5276cd6d34d9c0f3..c87051140d5c339de8d9b9ed417c32b91c2077f0 100644 (file)
         </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>
diff --git a/tests/bugs/ConstructorDeclaration.java b/tests/bugs/ConstructorDeclaration.java
new file mode 100644 (file)
index 0000000..df45cb1
--- /dev/null
@@ -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");
+    }
+}
\ No newline at end of file