Issue Type: Bug Bug
Affects Versions: 5.0.1.Final
Assignee: Unassigned
Components: annotation-processor
Created: 09/Jun/13 12:48 PM
Description:

Per the spec, methods specified in a superclass or interface should only be annotated where they are originally defined (the contract). If an implementation or extending class contains constraint annotations on these methods, it should result in an exception (because it alters the contract understood by the consumer of the interface).

This is all well and good, except that the annotation processor does not catch these types of programming errors, so if you mistakenly annotate an overridden or implemented method you won't notice until runtime. The annotation processor should flag constraints on methods that override or implement superclass or interface methods so that this problem can be caught during compilation.

Project: Hibernate Validator
Labels: validation annotation annotation-processor contract
Priority: Major Major
Reporter: Nick Williams
Original Estimate: 8h
Remaining Estimate: 8h
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