Skip to content
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

[GITHUB-1089] Fix missing reflection use in c.s.j.internal.ReflectionUtils #1090

Conversation

matthiasblaesing
Copy link
Member

@matthiasblaesing matthiasblaesing commented Apr 25, 2019

c.s.j.internal.ReflectionUtils accesses java.lang.invoke.MethodType
without reflection, causing java.lang.NoClassDefFoundError
on android API level < 26

MethodType is already accessed via reflection and just for the method
lookup the class literal was used. The literal use was removed and
replaced with the class already looked up via reflection.

Closes: #1089

…nUtils`

`c.s.j.internal.ReflectionUtils` accesses `java.lang.invoke.MethodType`
without reflection, causing `java.lang.NoClassDefFoundError`
on android API level < 26

MethodType is already accessed via reflection and just for the method
lookup the class literal was used. The literal use was removed and
replaced with the class already looked up via reflection.
@matthiasblaesing matthiasblaesing merged commit a8b9720 into java-native-access:master Apr 26, 2019
@matthiasblaesing matthiasblaesing deleted the android_method_type branch April 26, 2019 17:56
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.

JNA 5.3.0 access classes missing on android without reflection
1 participant