Skip to main content

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

Thanks a lot!

Ramnivas Laddad wrote:
How about



On Mon, Mar 24, 2008 at 1:59 PM, joss <jonathan.clairembault@xxxxxxxxx <mailto:jonathan.clairembault@xxxxxxxxx>> wrote:

    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

    aspectj-users mailing list
    aspectj-users@xxxxxxxxxxx <mailto:aspectj-users@xxxxxxxxxxx>


aspectj-users mailing list

Back to the top