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

Groups from the main constraint annotation must be inherited by the composing annotations

    XMLWordPrintableJSON

Details

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

    Description

      Groups from the main constraint annotation are inherited by the composing annotations, and any groups definition on a composing annotation must be ignored.

      Fixed this by giving access to the parent constraint group list in AppendValidationToBuilder, and by ensuring that this list is copied to children AppendValidationToBuilder's when they are created.

      I have an easier to understand fix that does a post-processing of the metabean to achieve the same results. I left it commented in case you prefer it.

      Added some tests to validate the rule. 3 more TCK test pass.

      Attachments

        1. ConstraintCompositionTest.java
          4 kB
          Carlos Vara
        2. 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: