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

Reference guide incorrect regarding DefaultTraversableResolver

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.3.2.Final
    • Fix Version/s: 5.2.0.Beta1
    • Component/s: documentation
    • Labels:
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true
    • Sprint:

      Description

      The reference documentation mentions:

      Hibernate Validator provides two TraversableResolvers out of the box which will be enabled automatically depending on your environment. The first is the DefaultTraversableResolver which will always return true for isReachable() and isTraversable(). The second is the JPATraversableResolver which gets enabled when Hibernate Validator gets used in combination with JPA 2.

      However, the implementation of DefaultTraversableResolver contains:

      public DefaultTraversableResolver() {
      	detectJPA();
      }
      

      It therefore always uses the JPATraversableResolver when JPA is detected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brunochristiaen Bruno Christiaen
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: