Skip to content

Conversation

@nicky9door
Copy link
Contributor

@nicky9door nicky9door commented Jan 21, 2022

This is an alternative fix for #173 where the call to setAccessible is wrapped in a try-catch. I am catching Exception instead of InaccessibleObjectException since the latter is only available since Java 9. This way, the code remains backwards compatible with Java 8

Feel free to choose between this PR or #177

@EugenCepoi
Copy link
Contributor

I have a strong preference for the other way of doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants