Uploaded image for project: 'Hibernate Validator'
  1. HV-624

The MethodValidator does not work with no-interface-view EJBs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.3.0.Final
    • Fix Version/s: None
    • Component/s: engine
    • Labels:
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      Given an EJB that extends no interface (uses the no-interface view variant of EJB3.1), any validation annotation put on any parameter on any public method is automatically added to the proxy of that ejb created by the container.

      At this moment, hibernate validator complains saying:

      Only the root method of an overridden method in an inheritance hierarchy may be annotated with parameter constraints, but there are parameter constraints defined at all of the following overridden methods...

      The methods signalled are: the one from the ejb and the one from the proxy.

      There is obviously no way around it but to declare an interface for that EJB and move the validation annotations there. An ugly workaround.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: