This issue can't be edited

Because it belongs to an archived project. Jira admins can restore projects from the archive.

Method validation support (II)

Description

This is the follow-up issue for the method validation feature after the first BV 1.1 early draft.

Environment

None

Activity

Show:

Matthew Adams September 11, 2012 at 6:04 PM

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().

Fixed

Details

Assignee

Reporter

Participants

Gunnar Morling
Matthew Adams

Components

Priority

Created March 10, 2012 at 2:19 PM
Updated January 13, 2015 at 8:06 PM
Resolved November 5, 2012 at 12:25 PM