-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove cast to void** as the formal parameter type should be JNIEnv** #46
Remove cast to void** as the formal parameter type should be JNIEnv** #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to find out why the reinterprate cast has been added explicit here
I have forgotten the reason, but I think there was one
also in a gh action, if we add the flag, would fail
pls see https://github.com/a4z/djinni-support-lib/runs/3212494909?check_suite_focus=true |
Ouff, that sucks... 🤨 My guess it that this may be an incompatibility between OpenJDK and the Android NDK? |
omg, this must have been the relevant change to make google win the law suite against oracle (beside the different code formatting, of course) :-) I think we might be able to fix this with some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adopt change as suggested.
Android JNI has a different interface as Oracle JNI, and we need to address that.
Thanks!
Hej @eakoli ,please check your repo, I added a PR that does the required changes so it works on both, Android and Oracle JNI, plus github action checks for both cofigs please merge that , so we can pull in the changes, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate how this preserves the compatibility with other platforms. Thanks everyone!
A recent changed altered the call to pass the p_env parameter as a void**, which causes compilation errors as the format prototype of AttachCurrentProcess is