Clarify the isInIterable() return value for arrays

Description

In 5.2. ConstraintViolation, the Bean Validation 1.1 spec states that:

isInIterable() returns true if the node represents an object contained in an Iterable or in a Map, false otherwise.

In the RI, isInIterable() also returns true for arrays - and the RI counts on it in various places.

We thought it was weird the TCK didn't have a test broken due to this but it's worse than that: the TCK has a test relying on isInIterable() being true for arrays.

See:

Our inclination would be to fix the spec as it seems like an error.

Environment

None

Activity

Show:
Gunnar Morling
June 20, 2017, 4:12 PM

PR for JavaDoc update: https://github.com/beanvalidation/beanvalidation-api/pull/116. Another one is coming for the spec in a bit.

Assignee

Gunnar Morling

Reporter

Guillaume Smet

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure