Issue Type: Bug Bug
Affects Versions: 5.0.0.CR2
Assignee: Unassigned
Components: engine
Created: 12/Mar/13 8:44 AM
Description:

For intercepted classes without interfaces Weld generates and injects proxy classes, which are derived from the original class. In this case the original as well as the proxied sub-class have (identical) parameter constraints. This causes validation to fail as an apparent strengething of preconditions is detected.

Possible approaches:

  • Ignore proxy classes when doing the precondition strengthening check. Would have to be based on heuristics (class name pattern, implemented interface etc.) since we don't know the exact proxy technology used)
  • Check whether the constraints on overridden an overriding methods are the same. In this case there is no strenghtening, making the addition of constraints in the subtype acceptable.
Fix Versions: 5.0.0.CR3
Project: Hibernate Validator
Priority: Major Major
Reporter: Gunnar Morling
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