Skip to content

Fix build failures with Java 16. #2231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Fix build failures with Java 16. #2231

wants to merge 2 commits into from

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Jun 9, 2021

A few test that used reflection to access the actual SQL executed by a Query object failed with java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module 1b9e1916.
This change replaces the reflection used by a proper call to unwrap

schauder added 2 commits June 9, 2021 10:11
A few test that used reflection to access the actual SQL executed by a Query object failed with `java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module 1b9e1916`.
This change replaces the reflection used by a proper call to `unwrap`
@schauder schauder requested a review from mp911de June 9, 2021 08:15
@mp911de
Copy link
Member

mp911de commented Jun 9, 2021

Feel free to merge this right away as these are test changes only.

schauder added a commit that referenced this pull request Jun 9, 2021
A few test that used reflection to access the actual SQL executed by a Query object failed with `java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module 1b9e1916`.
This change replaces the reflection used by a proper call to `unwrap`.

Original pull request #2231
@schauder
Copy link
Contributor Author

schauder commented Jun 9, 2021

Merged.

@schauder schauder closed this Jun 9, 2021
@schauder schauder deleted the issue/jdk16-failure branch June 10, 2021 07:08
mp911de pushed a commit that referenced this pull request Feb 22, 2022
A few test that used reflection to access the actual SQL executed by a Query object failed with `java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not "opens java.lang.reflect" to unnamed module 1b9e1916`.
This change replaces the reflection used by a proper call to `unwrap`.

Original pull request #2231
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