You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Donald Woods (JIRA)" <ji...@apache.org> on 2010/04/30 23:20:55 UTC

[jira] Resolved: (BVAL-31) A ConstraintDefinitionException should be thrown when the resolved validator is not compatible with the annotation type

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

Donald Woods resolved BVAL-31.
------------------------------

    Fix Version/s: 0.1-incubating
       Resolution: Fixed

committed as r939818

> A ConstraintDefinitionException should be thrown when the resolved validator is not compatible with the annotation type
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: BVAL-31
>                 URL: https://issues.apache.org/jira/browse/BVAL-31
>             Project: BeanValidation
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.1-incubating
>            Reporter: Carlos Vara
>            Assignee: Donald Woods
>             Fix For: 0.1-incubating
>
>         Attachments: bval-jsr303.patch
>
>
> The spec is a bit vague in this, so the fix is the minimum required to pass it. However, in the future we might be able to be more lenient and filter the list of validators by annotation type before applying the resolution filtering.
> An additional test ConstraintCompositionTest#testOverriddenAttributesMustMatchInType() in the TCK passes, but I would say the test has a bug in the definition of FrenchZipcodeWithInvalidOverride which is making it test this scenario instead of the overridden attributes. Maybe we should report the bug to JBoss people.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.