<div dir="ltr">Once that belongs to Java 8, that makes sense to me.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 9, 2017 at 8:36 AM, Gunnar Morling <span dir="ltr">&lt;<a href="mailto:gunnar@hibernate.org" target="_blank">gunnar@hibernate.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m curious about your take on supporting the types in ${subject}<br>
(BVAL-579 [1]).<br>
<br>
They are non-generic wrappers for int, long and double. Should we<br>
support them with the numeric constraints such as @Min et al.? The<br>
easiest way to do so would be to just mandate support in the JavaDoc<br>
of the numeric constraint types.<br>
<br>
The only thing I can see speaking against this is that we may migrate<br>
to an extractor-based approach in a future revision. Currently<br>
extractors cannot be used, as those types don&#39;t have any type<br>
parameter which could be extracted. But assuming we extend the<br>
extractor API in a future revision to deal with non-generic types,<br>
too, we could then rather mandate built-in extractors for those types.<br>
Which will allow to put *any* constraint applying to int also to<br>
OptionalInt.<br>
<br>
Should we do such change in a future revision, I don&#39;t think anything<br>
would change for users. Only providers would have to implement support<br>
for these types via extractors instead of dedicated constraint<br>
validators. I think such change is acceptable.<br>
<br>
What do others think?<br>
<br>
Thanks,<br>
<br>
--Gunnar<br>
<br>
[1] <a href="https://hibernate.atlassian.net/browse/BVAL-579" rel="noreferrer" target="_blank">https://hibernate.atlassian.<wbr>net/browse/BVAL-579</a><br>
______________________________<wbr>_________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/<wbr>beanvalidation-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Otávio Gonçalves de Santana<div><div style="text-align:center"><br style="font-size:12.8000001907349px"><div style="font-size:12.8000001907349px;text-align:left"><br></div><div style="font-size:12.8000001907349px;text-align:left">twitter: <a href="http://twitter.com/otaviojava" target="_blank">http://twitter.com/otaviojava</a></div><div style="font-size:12.8000001907349px;text-align:left">site:     <span style="text-align:center"><font color="#0000ee"><u><a href="http://about.me/otaviojava" target="_blank">http://about.me/otaviojava</a></u></font></span></div><div><span style="text-align:center"><font color="#0000ee"><br></font></span></div></div></div></div></div>
</div>