Issue Details (XML | Word | Printable)

Key: OPENJPA-137
Type: Sub-task Sub-task
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Kevin Sutter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA
OPENJPA-133

Perform parameter validation for annotated callback methods

Created: 08/Feb/07 02:04 PM   Updated: 07/Aug/07 06:42 PM
Return to search
Component/s: jpa
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
This is a follow-on Issue to OPENJPA-133. Issue 133 was concerned with properly processing the xml configuration of callback methods. As I was experimenting with that scenario, I discovered that our processing for annotated callback methods and xml callback methods is not consistent. While we do parameter validation for the xml-configured callbacks, we do not do any validation of the annotated callback methods. We just assume that the signature is valid. An incorrectly configured annotated callback method is not detected until runtime and then the user will get an IllegalArgumentException. It's good that we eventually catch and log this condition, but if we could do the validation earlier like we do for xml-configured callbacks, the user will know about the problem much earlier in the process.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Patrick Linskey made changes - 01/Mar/07 02:27 AM
Field Original Value New Value
Fix Version/s 1.0.0 [ 12312341 ]
Patrick Linskey made changes - 07/Aug/07 06:42 PM
Fix Version/s 1.0.0 [ 12312341 ]