Initializing JPATraversableResolver fails with IllegalAccessException

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

Environment

None

Assignee

Guillaume Smet

Reporter

Andreas Benneke

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure