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

Unwrapping should work if there is only one VE compatible with the type even if there are 2 type arguments

    Details

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

      Description

      See this example in the RI:

      	private class BeanWithWrapperWithTwoTypeArguments {
      
      		@Min(value = 10, payload = { Unwrapping.Unwrap.class })
      		private final WrapperWithTwoTypeArguments<Long, String> wrapper = new WrapperWithTwoTypeArguments<>( 5L, "value" );
      	}
      

      And we should probably add a test in the TCK.

        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: