I need to make some reflective method calls in Java. Those calls will include methods that have arguments that are primitive types (int, double, etc.). The way to specify such types ...
I have an Object[] array, and I am trying to find the ones that are primitives. I've tried to use Class.isPrimitive(), but it seems I'm doing something wrong:
I must be missing something here, but I seem to be having some trouble doing some basic reflection. I thought that due to things like boxing that I would receive ...
With AspectJ I could easily use thisJoinPointStaticPart.getSignature().getName() to get the name of the method. For the array of Class objects I used thisJoinPoint.getArgs() and from each argument the method received I saved the class of that object in an array. But the problem lies there. Because the arguments are primitive it wraps them in their class wrapper. Like java.lang.Float.