Can you add the ability to validate static methods? I see no technical reason why an instance needs to be provided.
Using the existing proposed validateAllParameters methods, I suppose one could provide null or the correct Class object, but I'd recommend passing null for the target object or, alternatively, I'd recommend the addition of another method like "validateStaticMethodParameters" or similar that omits the target object entirely to avoid the passing of the wrong Class object (possible with inheritance). The BV implementation, if it needs the Class object, could always ask the Method object for its Class via getDeclaringClass().
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Can you add the ability to validate static methods? I see no technical reason why an instance needs to be provided.
Using the existing proposed validateAllParameters methods, I suppose one could provide null or the correct Class object, but I'd recommend passing null for the target object or, alternatively, I'd recommend the addition of another method like "validateStaticMethodParameters" or similar that omits the target object entirely to avoid the passing of the wrong Class object (possible with inheritance). The BV implementation, if it needs the Class object, could always ask the Method object for its Class via getDeclaringClass().