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

Status

Assignee

Guillaume Smet

Reporter

Andreas Benneke

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure