Andrei Serea commented on Bug HV-624

I've drilled into the source code today and came to this conclusion: hibernate method validator uses Method.getParameterAnnotations() to fetch the annotations used on a class in order to determine which overridden methods duplicate validation annotations from superclasses.
The problem is that the proxy class generated by the Jboss AS 7.1.1 container has all method parameter annotations from the ejb class copied on its method parameters too! So obviously this is not a normal inheritance and the method validator sees this as a breach of its specifications.

This means that this problem exists not only for no-interface view ejbs but for normal ones too. I checked it and verified that it reproduces for this case too.

To answer your question, I have a setup that includes resteasy and the resteasy-hibernatevalidator-provider. I will provide the test case but if what I said is right, the problem is with the proxy factory in jboss 7.1.1

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira