You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/03/05 14:09:44 UTC

[jira] [Resolved] (WICKET-5506) DefaultPropertyResolver should resolve the Property according to the getter first

     [ https://issues.apache.org/jira/browse/WICKET-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-5506.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.15.0
                   7.0.0

> DefaultPropertyResolver should resolve the Property according to the getter first
> ---------------------------------------------------------------------------------
>
>                 Key: WICKET-5506
>                 URL: https://issues.apache.org/jira/browse/WICKET-5506
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-bean-validation
>    Affects Versions: 6.13.0
>         Environment: 
>            Reporter: Vincent MATHON
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 7.0.0, 6.15.0
>
>
> A domain model model2 may extend a domain model model1 and have JSR303 annotations on one or more getter to override constraints. In such a case, DefaultPropertyResolver cannot detect the right domain model implementation since direct property analysis is done first. Indeed, with the current implementation, if a property is declared in model1 and the getter is overriden in model2, model1 is systematically  affected as the property class owner although model2 is the actual implementation associated with the Wicket model. As a consequence, some constraints validations may never been thrown.
> Swapping direct property analysis and getter analysis solves this problem.
> Workaround: providing my own property resolver.



--
This message was sent by Atlassian JIRA
(v6.2#6252)