We're updating the issue view to help you get more done. 

Explore usage of method handles instead of core reflection in ReflectionHelper#getValue()

Description

Supposedly, method handles are a bit more efficient than using Core reflection. That'll require some proper measuring using JMH.

One challenge will be how to obtain method handles for non-public bean members, e.g. private fields:

The latter would require some SPI which returns a Lookup with private access for a given class. An interesting question is how open modules play into that. Can we obtain lookups with private access to the user's classes from within Hibernate Validator itself (i.e. no SPI is needed), if the user module is an open module (or opens its beans specifically to HV)?

Environment

None

Status

Assignee

Unassigned

Reporter

Gunnar Morling

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

Pull Request

None

backportDecision

None

backportReEvaluate

None

Priority

Major