<div dir="ltr"><div><div>Agreed: <a href="https://hibernate.atlassian.net/browse/BVTCK-205">https://hibernate.atlassian.net/browse/BVTCK-205</a> .<br><br></div>Feedback welcome on the PR.<br><br></div>Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 13, 2018 at 9:12 PM, Matt Benson <span dir="ltr">&lt;<a href="mailto:mbenson@apache.org" target="_blank">mbenson@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div>Consider InvalidGroupConversionInProper<wbr>tyLevelOverridingTest#<wbr>testGroupConversionsAreAdditiv<wbr>eAndExceptionIsThrownForMultip<wbr>leConversionWithSameSource():<div><br></div><div>This test purports to enforce that a ValidationException is thrown because a property 

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">specifies<span> </span></span>

multiple group conversions from the Default group. However, the example actually specifies one via the annotated getter, and the other via the XML-configured field. I can&#39;t find that the spec is perfectly clear on this, but it is clear that a property should be accessed using the mechanism of constraint declaration. I don&#39;t recall where, but the TCK tests proper validation of field vs. getter even when the objects returned are different. I would therefore argue that there could be some legitimate reason to apply a different group conversion to field vs. getter, and that the test case should be changed to specify the XML constraint via getter as does the User class definition overridden.<span class="HOEnZb"><font color="#888888"><br><div><br></div><div>Matt</div></font></span></div></div>
<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></div>