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

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

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.1
    • Component/s: None
    • Labels:
      None
    • Last commented by a user?:
      true

      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)?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gunnar.morling Gunnar Morling
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: