From 520ad8a1aa6073e38f99c90c35b085cba96c76ae Mon Sep 17 00:00:00 2001 From: ehilsdal Date: Thu, 29 Jan 2004 15:30:42 +0000 Subject: Fix for Bugzilla Bug 42668 effect of an after returning type incompatible with a join point return type --- tests/new/AfterReturningParamMatching.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/new') diff --git a/tests/new/AfterReturningParamMatching.java b/tests/new/AfterReturningParamMatching.java index 062bfa541..4677eac09 100644 --- a/tests/new/AfterReturningParamMatching.java +++ b/tests/new/AfterReturningParamMatching.java @@ -5,16 +5,16 @@ import org.aspectj.testing.Tester; public class AfterReturningParamMatching { public static void main(String[] args) { goBoolean(false); - Tester.checkAndClearEvents(new String[] { "Object" }); + Tester.checkAndClearEvents(new String[] { "boolean", "Object" }); goByte(1); Tester.checkAndClearEvents(new String[] { "byte", "int", "long", "Object"}); goInt(2); - Tester.checkAndClearEvents(new String[] { "byte", "int", "long", "Object" }); + Tester.checkAndClearEvents(new String[] { "int", "long", "Object" }); goLong(3); - Tester.checkAndClearEvents(new String[] { "byte", "int", "long", "Object" }); + Tester.checkAndClearEvents(new String[] { "long", "Object" }); goObject(new Object()); Tester.checkAndClearEvents(new String[] { "Object" }); @@ -62,6 +62,7 @@ aspect A { call(* goNumber(*)) || call(* goInteger(*)); + after() returning(boolean b): methodsInQuestion() { Tester.event("boolean"); } after() returning(byte b): methodsInQuestion() { Tester.event("byte"); } after() returning(int b): methodsInQuestion() { Tester.event("int"); } after() returning(long b): methodsInQuestion() { Tester.event("long"); } -- cgit v1.2.3