Uploaded image for project: 'Hibernate Validator'
  1. HV-1176

Type argument constraints for Optional are ignored for method parameters and return value if there are no other constraints

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.4.Final
    • Component/s: engine
    • Labels:
      None

      Description

      If the only constraints of a method are type argument constraints on the parameters or the return value, the constraints are ignored.

      This is due to the fact that the isConstrained() method in the various AbstractConstrainedElement implementations does not take into account the type argument constraints.

        Attachments

          Activity

            People

            • Assignee:
              gsmet Guillaume Smet
              Reporter:
              gsmet Guillaume Smet
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: