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 get[Static]Field without ::javaobject #18

Closed
wants to merge 1 commit into from
Closed

Support get[Static]Field without ::javaobject #18

wants to merge 1 commit into from

Conversation

dreiss
Copy link
Contributor

@dreiss dreiss commented Oct 24, 2019

Treat getField as equivalent to getField<JniType>,
which is equivalent to getFieldJFoo::javaobject.

This required introducing a new metaprogramming struct,
PrimitiveOrJniType, which works like JniType, but passes through
Java primitives.

Test Plan:
CI

Treat getField<JFoo> as equivalent to getField<JniType<JFoo>>,
which is equivalent to getField<JFoo::javaobject>.

This required introducing a new metaprogramming struct,
`PrimitiveOrJniType`, which works like `JniType`, but passes through
Java primitives.

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:
Treat `getField<JFoo>` as equivalent to `getField<JniType<JFoo>>`,
which is equivalent to `getField<JFoo::javaobject>`.

This required introducing a new metaprogramming struct,
`PrimitiveOrJniType`, which works like `JniType`, but passes through
Java primitives.

Pull Request resolved: facebookincubator/fbjni#18

Test Plan: CI

Reviewed By: cjhopman

Differential Revision: D18121231

Pulled By: dreiss

fbshipit-source-id: 6c1db54263e40a9f438172cc134394e57cf3f752
facebook-github-bot pushed a commit to facebook/hermes that referenced this pull request Oct 28, 2019
Summary:
Treat `getField<JFoo>` as equivalent to `getField<JniType<JFoo>>`,
which is equivalent to `getField<JFoo::javaobject>`.

This required introducing a new metaprogramming struct,
`PrimitiveOrJniType`, which works like `JniType`, but passes through
Java primitives.

Pull Request resolved: facebookincubator/fbjni#18

Test Plan: CI

Reviewed By: cjhopman

Differential Revision: D18121231

Pulled By: dreiss

fbshipit-source-id: 6c1db54263e40a9f438172cc134394e57cf3f752
@facebook-github-bot
Copy link
Contributor

@dreiss merged this pull request in bf80462.

EduardoCostaom pushed a commit to EduardoCostaom/profilo that referenced this pull request Nov 2, 2022
Summary:
Treat `getField<JFoo>` as equivalent to `getField<JniType<JFoo>>`,
which is equivalent to `getField<JFoo::javaobject>`.

This required introducing a new metaprogramming struct,
`PrimitiveOrJniType`, which works like `JniType`, but passes through
Java primitives.

Pull Request resolved: facebookincubator/fbjni#18

Test Plan: CI

Reviewed By: cjhopman

Differential Revision: D18121231

Pulled By: dreiss

fbshipit-source-id: 6c1db54263e40a9f438172cc134394e57cf3f752
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