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

Support JArrayClass without ::javaobject and document its use #20

Closed
wants to merge 1 commit into from

Conversation

dreiss
Copy link
Contributor

@dreiss dreiss commented Oct 24, 2019

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*

Test Plan:
CI

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*

Test Plan:
CI
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 24, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dreiss has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit to facebookarchive/profilo that referenced this pull request Oct 28, 2019
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
facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Oct 28, 2019
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
@facebook-github-bot
Copy link
Contributor

@dreiss merged this pull request in a9de8b2.

EduardoCostaom pushed a commit to EduardoCostaom/profilo that referenced this pull request Nov 2, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants