<div dir="auto">Should we include Stream as well? <div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 Jun 2017 14:55, &quot;Matt Benson&quot; &lt;<a href="mailto:mbenson@apache.org">mbenson@apache.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1<br>
<br>
Matt<br>
<br>
On Thu, Jun 15, 2017 at 11:20 AM, Christian Kaltepoth<br>
&lt;<a href="mailto:christian@kaltepoth.de">christian@kaltepoth.de</a>&gt; wrote:<br>
&gt; Supporting arrays as well sounds reasonable to me. Unless there is any good<br>
&gt; argument against it.<br>
&gt;<br>
&gt; 2017-06-15 13:16 GMT+02:00 Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; On our road to the Proposed Final Draft (more on that in a separate<br>
&gt;&gt; mail a bit), we&#39;ve almost closed out all the relevant issues.<br>
&gt;&gt;<br>
&gt;&gt; One remaining issue is <a href="https://hibernate.atlassian.net/browse/BVAL-552" rel="noreferrer" target="_blank">https://hibernate.atlassian.<wbr>net/browse/BVAL-552</a><br>
&gt;&gt; which is about inconsistent behaviour of Node#isInIterable() when it<br>
&gt;&gt; comes to arrays. The spec says this:<br>
&gt;&gt;<br>
&gt;&gt;     &quot;isInIterable() returns true if the node represents an object<br>
&gt;&gt; contained in an Iterable or in a Map, false otherwise.&quot;<br>
&gt;&gt;<br>
&gt;&gt; Whereas the TCK has a test case which expects true to be returned for<br>
&gt;&gt; arrays, too [1]. Naturally, that&#39;s how the RI (and any other<br>
&gt;&gt; TCK-compliant implementation) implements this.<br>
&gt;&gt;<br>
&gt;&gt; Now my question is, should we simply change the spec and say<br>
&gt;&gt;<br>
&gt;&gt;         &quot;isInIterable() returns true if the node represents an object<br>
&gt;&gt; contained in an Iterable, Map or an array, false otherwise.&quot;<br>
&gt;&gt;<br>
&gt;&gt; Given that maps are considered already, the method has to be about<br>
&gt;&gt; &quot;things that are iterable&quot; and not java.lang.Iterable (which j.u.Map<br>
&gt;&gt; doesn&#39;t extend). So considering arrays there seems consistent.<br>
&gt;&gt;<br>
&gt;&gt; Or do you, Emmanuel, remember a reason for the current specification<br>
&gt;&gt; and it&#39;s actually a bug in the TCK?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; --Gunnar<br>
&gt;&gt;<br>
&gt;&gt; [1]<br>
&gt;&gt; <a href="https://github.com/beanvalidation/beanvalidation-tck/blob/master/tests/src/main/java/org/hibernate/beanvalidation/tck/tests/validation/PropertyPathTest.java#L196" rel="noreferrer" target="_blank">https://github.com/<wbr>beanvalidation/beanvalidation-<wbr>tck/blob/master/tests/src/<wbr>main/java/org/hibernate/<wbr>beanvalidation/tck/tests/<wbr>validation/PropertyPathTest.<wbr>java#L196</a><br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; beanvalidation-dev mailing list<br>
&gt;&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
&gt;&gt; <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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Christian Kaltepoth<br>
&gt; Blog: <a href="http://blog.kaltepoth.de/" rel="noreferrer" target="_blank">http://blog.kaltepoth.de/</a><br>
&gt; Twitter: <a href="http://twitter.com/chkal" rel="noreferrer" target="_blank">http://twitter.com/chkal</a><br>
&gt; GitHub: <a href="https://github.com/chkal" rel="noreferrer" target="_blank">https://github.com/chkal</a><br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; beanvalidation-dev mailing list<br>
&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.<wbr>jboss.org</a><br>
&gt; <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>
______________________________<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></div>