Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] type of around formal parameters

Hi all,

Do you know whether it is possible to recuperate the types of around's formal parameters in its own body or not ?

example :

long around(int x) {
Object[] objs = thisJoinPoint.getArgs();
Class<?>[] types = new Class<?>[objs.length];

for(int i=0; i<objs.length; ++i)
types[i] = objsi[i].getClass(); // works only for the Class and not for the primitive types (like int here)

Thanks in advance.

Jonathan Clairembault

Back to the top