[bv-dev] Container element validation for arrays

Emmanuel Bernard emmanuel at hibernate.org
Wed Apr 19 15:29:26 EDT 2017


BTW +1 to the idea of writing a well written blog explaining our problem and open a JDK issue asking for advice.
My guess is that it won’t go anywhere but that’s worth trying.

> On 19 Apr 2017, at 17:09, Michael Nascimento <misterm at gmail.com> wrote:
> 
> On Wed, Apr 19, 2017 at 12:03 PM, Gunnar Morling <gunnar at hibernate.org <mailto:gunnar at hibernate.org>> wrote:
> Then we cannot tell what's the target of the @Size annotation, String
> or String[]. As per Java 8's annotation semantics it can be both
> (provided FIELD and TYPE_USE are among the supported element types).
> 
> This point worries me. So you're saying there's a flaw in *the language design* for this JSR in this particular case, is that right? I said it before, but since now we got to a point you''re stating (maybe rightfully, don't take me wrong!) the language is broken in the specific case of annotations involving arrays, it would be nice to contact the spec leads for the JSR in order to see (a) if we missed something (then we should revisit the solution) or (b) to get the language fixed for Java SE 10 (for 9 I think it wouldn't make it even though it's a bug fix) and in this case provide no support until we release BV for that version of Java.
> 
> Regards,
> Michael
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20170419/baed4c38/attachment.html 


More information about the beanvalidation-dev mailing list