-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support JArrayClass without ::javaobject and document its use (#20)
Summary: - Change the static_assert to allow JavaClass types. - Change pointer cast in getElement to use JniType. - In setElement, use new toPlainJniReference that converts JavaClass values to plain JNI references using ReprAccess. - NOTE: Maybe we should do this last one in JMethod::operator() as well, since it currently passes JavaClass values directly to env->Invoke* Pull Request resolved: facebookincubator/fbjni#20 Test Plan: CI Reviewed By: mhorowitz Differential Revision: D18121242 Pulled By: dreiss fbshipit-source-id: 634e92ab55a3bbf05efac5ac61193fb27f4d1445
- Loading branch information
1 parent
73c7da6
commit 4c655fa
Showing
5 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters