Cross-parameter constraint is disallowed by Annotation Processor

Description

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

I have created a cross-parameter constraint as follows:

CrossParameterConstraint.java

CrossParameterConstraintValidator.java

The above constraint is used in a method as follows:

CrossParameterConstraintUsageExample.java

I have configured the Annotation Processor in pom.xml
as follows:

pom.xml

When trying to compile, the Annotation Processor reports the following error:

The annotation @CrossParameterConstraint is disallowed for the return type of this method.

Environment

hibernate validator 5.0.3 with Java 1.6.0_45-b06-451 on OSX 10.9.1.

Assignee

Unassigned

Reporter

George Fountopoulos

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure