We're updating the issue view to help you get more done. 

Make HV 5.1.x compatible with Java 6

Description

Due to an accidental reference to a Java 7 API (Collections#emptyIterator() in ValidatorImpl#createIteratorForCascadedValue() Hibernate Validator 5.1.2.Final is not compatible with Java 6. This should be changed to use e.g. emptyList().iterator() instead.

Apparently AnimalSniffer is not executed by default, otherwise we'd have caught that issue. This should be changed as well.

Environment

None

Status

Assignee

Unassigned

Reporter

Gunnar Morling

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.1.2.Final

Priority

Major