Subject: Regarding HW4 Solution...
From: Paul Freeman (pfreeman@ccs.neu.edu)
Date: Tue Oct 29 2002 - 14:41:04 EST
Hi Class -
Two things. Anyone who has submitted HW4 and did not receive the
solution yet, please let me know so that I can send it to you.
In the HW4 solution, there is a bug in the solution. Two of the
pointcuts defined in the any class are missing a set of parentheses:
//denotes all statically accessed immediate parts and methods
private pointcut AllStaticAccesses(): scope() &&
call(static * *.*(..)) ||
get(static * *);
//denotes all java package method and immediate part calls
private pointcut AllJavaPackageAccesses(): scope() &&
call(* java..*(..)) ||
get(java..* *);
SHOULD BE:
//denotes all statically accessed immediate parts and methods
private pointcut AllStaticAccesses(): scope() &&
(call(static * *.*(..)) ||
get(static * *));
//denotes all java package method and immediate part calls
private pointcut AllJavaPackageAccesses(): scope() &&
(call(* java..*(..)) ||
get(java..* *));
Paul
This archive was generated by hypermail 2b28 : Tue Oct 29 2002 - 14:44:06 EST