Custom constraint causes "target cannot be inferred" exception when used for return value

Description

I have created a CustomMin constraint, which is an exact copy of javax.validation.constraints.Min as follows:

CustomMin.java

I am trying to validate parameters using the ExecutableValidator as follows:

TestValidator.java

The above is causing the following exception:

Environment

I am using hibernate validator 5.0.2 with Java 1.6.0_45-b06-451 on OSX 10.9.1.

Status

Assignee

Gunnar Morling

Reporter

George Fountopoulos

Labels

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure