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

Initializing JPATraversableResolver fails with IllegalAccessException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.9.Final
    • Fix Version/s: 6.0.10.Final
    • Component/s: engine
    • Labels:
      None

      Description

      If JPA is on the classpath, HV uses a default TraversableResolver to handle non-initialized JPA proxies properly.

      However creation of this JPATraversableResolver fails with

      java.lang.IllegalAccessException: Class org.hibernate.validator.internal.util.privilegedactions.NewInstance can not access a member of class org.hibernate.validator.internal.engine.resolver.JPATraversableResolver with modifiers ""

      which is logged only on debug-level and the implementation continues with the TraverseAllTraversableResolver.

      Please find simple test case here https://github.com/abenneke/sandbox/tree/master/hibernate-validator-traversable

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room