Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to tell whether the parameters are primitive types or reference types?

the method itself should be available through the join point too - you
could look at the signature to see if boxing has taken place.

Andy

2010/4/20 ekinrf <ekinrf@xxxxxxx>:
> Hi,
> I got a pointcut matches methods with parameters. And I use reflection to
> access those parameters (thisJoinPoint.getArgs()), but this method would
> autobox those primitive types to objects, so I can't tell the difference
> between primitive types or reference types (Say int and Integer). I know
> this sounds a waste of time, but my application requires different treatment
> with primitive types and reference. Any suggestion would be appreciated,
> thank you.
> Regards,
> Fang
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top