<span style="font-family:arial,sans-serif;font-size:13px">&gt; I have my own ideas, but I&#39;d like to get your opinion on the subject.</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">So what&#39;s your take on this, </span><span style="font-family:arial,sans-serif;font-size:13px">Emmanuel</span><span style="font-family:arial,sans-serif;font-size:13px">?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Handling getters as normal methods in the spec and leaving it to providers to make other behavior configurable seems reasonable to me.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">--Gunnar</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/10/27 Hardy Ferentschik <span dir="ltr">&lt;<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<br>
<br>
<br>
On 26 Oct 2012, at 19:31, Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>&gt; wrote:<br>
<br>
&gt; I think getters should be handled as any other methods during method validation.<br>
<br>
</div>+1<br>
<div class="im"><br>
&gt; Not considering them during method validation would IMO be some form<br>
&gt; irregularity, causing getter-named methods not to be validated<br>
&gt; although a user might expect it:<br>
<br>
</div>+1<br>
&gt;From the method validation point of view there is just no reason to treat getXYZ() differently.<br>
I rather have two validations of the same constraints happening, but I don&#39;t think it will be a big problem in most cases.<br>
<br>
A provider could always choose to make it configurable.<br>
<span class="HOEnZb"><font color="#888888"><br>
--hardy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
</div></div></blockquote></div><br></div>