Skip to content

Conversation

steven-aerts
Copy link
Contributor

In the past the arrow encoder used lookup.findVirtual to lookup getters and setters for java beans. findVirtual is however very sensitive for the exact type used. This type was extrated from the encoder. For generic beans it could however be erased and as such be a different type from the expected type.

What changes were proposed in this pull request?

This patch will try the super classes of the expected type when the expected signature is not found.

Why are the changes needed?

More generic lookup of getter and setter method.

Does this PR introduce any user-facing change?

No, it fixes an exception.

How was this patch tested?

new unit test was adding testing the scenario.

Was this patch authored or co-authored using generative AI tooling?

No

In the past the arrow encoder used lookup.findVirtual to lookup getters
and setters for java beans.  `findVirtual` is however very sensitive for
the exact type used.  This type was extrated from the encoder.  For
generic beans it could however be erased and as such be a different type
from the expected type.

This patch will try the super classes of the expected type when the
expected signature is not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant