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

Hibernate Validator specific @NotEmpty used on return type throws an exception

Description

When using `@NotEmpty` annotation on return type I'm getting following error:

1 javax.validation.ConstraintDeclarationException: HV000141: The constraint org.hibernate.validator.constraints.NotEmpty used ConstraintTarget#IMPLICIT where the target cannot be inferred.

It was discussed here

As a workaround it is possible to implement custom validator as with this commit

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Lukáš Vasek

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

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

5.3.5.Final

Priority

Major