Odd StackMap error with 1.8.9 and wrapping new calls [message #1757936] |
Tue, 21 March 2017 22:47  |
Eclipse User |
|
|
|
Greetings,
I am trying to intercept the call of a constructor, and return another object in some cases. that is a subclass.
My advice is as follows
@Around(" call(com.acme.framework.jpa.queries.QueryParam.new(java.lang.Object, java.lang.Object)) && !within(com.acme.aspects.security.TaintedPathParamNotifier.TaintedQueryParam)")
public Object convertToTaintedQueryParam(ProceedingJoinPoint joinPoint) throws Throwable {
QueryParam qp = (QueryParam) joinPoint.proceed();
if ((qp.getValue() != null) && possiblyTaintedParms.containsKey(System.identityHashCode(qp.getValue()))) {
return new TaintedQueryParam(qp.getKey(), qp.getValue());
}
return qp;
}
when i try to apply this aspect, i get the following error
fail due to BCException "Unable to find Asm for stackmap generation (Looking for 'aj.org.objectweb.asm.ClassReader'). Stackmap generation for woven code is required to avoid verify errors on a Java 1.7 or higher runtime
i am using aspectj 1.8.9
All the other aspects are compiling fine, So it's not like the aspecjttools.jar isn't on the classpath.
Any ideas what i am doing wrong?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02806 seconds