Skip to content

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

Merged
matthiasblaesing merged 1 commit intojava-native-access:masterfrom
matthiasblaesing:android_method_type
Apr 26, 2019
Merged

[GITHUB-1089] Fix missing reflection use in c.s.j.internal.ReflectionUtils#1090
matthiasblaesing merged 1 commit intojava-native-access:masterfrom
matthiasblaesing:android_method_type

Conversation

@matthiasblaesing
Copy link
Copy Markdown
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