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

Bug in the activity java instance getter #6

Closed
katyo opened this issue Jan 4, 2020 · 0 comments
Closed

Bug in the activity java instance getter #6

katyo opened this issue Jan 4, 2020 · 0 comments

Comments

@katyo
Copy link
Contributor

katyo commented Jan 4, 2020

It seems there is no need reference operator because clazz field already is pointer:
https://github.com/rust-windowing/android-ndk-rs/blob/edde567f3d071db135ce5de35dcb156faa2eac07/android-ndk/src/native_activity.rs#L104-L106
So I mean this fragment should looks like:

jni::objects::JObject::from(self.ptr.as_ref().clazz as *const _ as jni::sys::jobject)

I already open issue here mb64/android-ndk-rs, but it seems the original project currently unmaintainable.

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

No branches or pull requests

1 participant