[
https://issues.apache.org/jira/browse/ZEST-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360582#comment-15360582
]
Paul Merlin commented on ZEST-114:
----------------------------------
I couldn't find any existing Constraints in the codebase for which repetition
could make sense except {{@Contains}}.
But it could be changed to accept an array of Strings that the value must
contain.
So, this issue is more about making sure the runtime supports repeated
constraint annotations.
Either we find a use case that actually needs repeated annotations, or we
simply implement support for them using a dumb use case as a test, or we drop
that idea completely.
> Make Constraint Annotations Repeatables
> ---------------------------------------
>
> Key: ZEST-114
> URL: https://issues.apache.org/jira/browse/ZEST-114
> Project: Zest
> Issue Type: Improvement
> Reporter: Paul Merlin
> Labels: constraints, java8
> Fix For: 3.0
>
>
> Java 8 introduce repeating annotations.
> We should leverage this for Constraint annotations.
> See https://docs.oracle.com/javase/tutorial/java/annotations/repeating.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)