Uploaded image for project: 'BVal'
  1. BVal
  2. BVAL-31

A ConstraintDefinitionException should be thrown when the resolved validator is not compatible with the annotation type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1-incubating
    • 0.1-incubating
    • jsr303
    • None

    Description

      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.

      Attachments

        1. bval-jsr303.patch
          5 kB
          Carlos Vara

        Activity

          People

            drwoods Donald Woods
            carlos.vara Carlos Vara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: