<div dir="ltr">Hi again,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 13, 2017 at 12:12 PM, Guillaume Smet <span dir="ltr">&lt;<a href="mailto:guillaume.smet@gmail.com" target="_blank">guillaume.smet@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail-HOEnZb"></span>The drawback I can see is that it adds a new reserved method to the @Constraint annotations. To make the migration more smooth, we could make it optional and test the returnType of the method before using the result.<br></div><span class="gmail-HOEnZb"></span></div>
</blockquote></div><br></div><div class="gmail_extra">After speaking with Gunnar, we would need a &quot;valid&quot; prefix on the name of the method so something like validationAppliesTo would work:<br>@Size(3, validationAppliesTo = ANNOTATED_ELEMENT)<br>@Size(10, validationAppliesTo = WRAPPED_VALUE)<br>
ListOfStrings nicknames;<br><br>-- <br></div><div class="gmail_extra">Guillaume<br></div></div></div>