Currently the RI throws an exception if a constraint is generic and cross-parameter, while this is allowed in the recent spec releases.
See InvalidConstraintDefinitionsTest#testConstraintDefinitionGenericAndCrossParameterConstraint