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

Pavel Horal updated BVAL-93:
----------------------------

    Summary: Strange ApacheValidatorFactory#getMessageInterpolator versus 
ApacheValidatorFactory#getDefaultMessageInterpolator method bodies  (was: 
Strange ApacheValidatorFactory#getMessageInterpolator versus 
ApacheValidatorFactory#getMessageInterpolator method bodies)

> Strange ApacheValidatorFactory#getMessageInterpolator versus 
> ApacheValidatorFactory#getDefaultMessageInterpolator method bodies
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BVAL-93
>                 URL: https://issues.apache.org/jira/browse/BVAL-93
>             Project: BeanValidation
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.2-incubating, 0.3-incubating
>            Reporter: Pavel Horal
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to