[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Warning NoGuardForLazyTjp
|
Thanx - and i do not really understand what to do. A if() in a PointCut?
What can i do with my code?
pointcut execClusterMethod(ClusterBase c):
execution( !@NoPrivilegeCheck public * PrivilegedCluster+.*(..)) &&
target(c);
before(ClusterBase c) : execClusterMethod(c) {
PrivilegeCheckerImpl pc = PrivilegeCheckerImpl.getImplInstance();
MethodSignature sig = (MethodSignature)
thisJoinPoint.getSignature();
Method m = sig.getMethod();
if(!pc.userPrivilegeIntersect((PrivilegedCluster) c, m,
thisJoinPoint.getArgs()))
throw new PrivilegeException("unsufficient privileges on
Cluster: " +
c.getClass().getName()+
" calling method: " +
m.getName());
}
Alexandru Popescu schrieb:
This was asked and answered a few days ago:
http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg05984.html
./alex
--
.w( the_mindstorm )p.
On 4/28/06, FaKod <fakod@xxxxxxxxxxxxxxxxxxxxx> wrote:
What does this warning mean, NoGuardForLazyTjp?
Occurs in a before advice with a thisJoinPoint.getArgs() statement.
Thanx
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users