The short answer is that AspectJ needs to
box primitive types in order to put them in an Object.
This is exactly parallel to API for
Method.invoke which expects an Object array.If you want the actual signature of the
method being called, you should use ((CodeSignature)thisJoinPoint.getSignature()).getParameterTypes().If this is returning
the wrong types that should be reported as a bug.
-----Original Message----- From: hicf@xxxxxxxxxxx
[mailto:hicf@xxxxxxxxxxx] Sent:Monday, June 16, 2003 To: aspectj-dev@xxxxxxxxxxx;
discuss@xxxxxxxx Subject: [aspectj-dev] about the
joinpoint.getArgs() function implementation problem of aspectj1.1
I 'd like to ask why the current implementation will not return the primitive
type such like int.class or boolean.class .Not the Integer.class or
I currently write a common function to response for the around() for all kinds
of pointcut.I use the reflect to invoking the target method.But if the function
contain primitive type,this approach will always fail.because the class array
construct from the joinpoint.getArgs() return the object class type but not the