From a717f689d51d8392d1f81e50556e25f26658294f Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 4 Mar 2009 03:00:29 +0000 Subject: declaremixin: check signature of factory method --- tests/features164/declareMixin/CaseJ.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/features164/declareMixin/CaseJ.java (limited to 'tests/features164/declareMixin/CaseJ.java') diff --git a/tests/features164/declareMixin/CaseJ.java b/tests/features164/declareMixin/CaseJ.java new file mode 100644 index 000000000..8b33faf6c --- /dev/null +++ b/tests/features164/declareMixin/CaseJ.java @@ -0,0 +1,17 @@ +// TESTING: invalid return type for factory method +import org.aspectj.lang.annotation.*; + +public class CaseJ { + public static void main(String[]argv) { } +} + +aspect X { + @DeclareMixin("A") + public static void createImplementation1() {} + + @DeclareMixin("A") + public static int createImplementation2(Object o) {return 2;} +} + +interface I {} + -- cgit v1.2.3