Hi All!
i defined the following pointcut:
I would like to add the method arguments, like every method in these packages (managers) that has as an argument of class LaufnummerId ( can be be somewhere in the argument list).Code:<protect-pointcut expression="execution(* najsre7.service..*Manager*Impl*.*(..))" access="ROLE_USER"/>
i tried the following:
Code:<protect-pointcut expression="execution(* najsre7.service..*Manager*Impl*.*(..)) AND args(..,laufnummerId,..)" access="ROLE_USER"/> or <protect-pointcut expression="execution(* najsre7.service..*Manager*Impl*.*(.., laufnummerId, ..)) " access="ROLE_USER"/>
But both don't work. In the first the args isn't validated and the second throw an exception:
Any ideas?Code:Caused by: java.lang.IllegalArgumentException: warning no match for this type name: laufnummerId [Xlint:invalidAbsoluteTypeName] at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315) at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:286)
regards angela


Reply With Quote