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

Matt Benson resolved BVAL-93.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0

> Strange ApacheValidatorFactory#getMessageInterpolator versus 
> ApacheValidatorFactory#getDefaultMessageInterpolator method bodies
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BVAL-93
>                 URL: https://issues.apache.org/jira/browse/BVAL-93
>             Project: BVal
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.2-incubating, 0.3-incubating
>            Reporter: Pavel Horal
>             Fix For: 1.1.0
>
>
> Method getDefaultMessageInterpolator is called only if it returns null. 
> Besides that it looks very strange, I am not sure whether the JSR-303 
> specification allows NULL to be returned.
> From org.apache.bval.jsr303.ApacheValidatorFactory :
>     public MessageInterpolator getMessageInterpolator() {
>         return ((messageResolver != null) ? messageResolver
>             : getDefaultMessageInterpolator());
>     }
>     protected MessageInterpolator getDefaultMessageInterpolator() {
>         return messageResolver;
>     }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to