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

Don't throw unchecked exception in unsafe.set_java_field #11

Merged
merged 2 commits into from
Jun 27, 2022
Merged

Don't throw unchecked exception in unsafe.set_java_field #11

merged 2 commits into from
Jun 27, 2022

Conversation

bluelhf
Copy link
Contributor

@bluelhf bluelhf commented Jun 23, 2022

This pull request modifies unsafe.set_java_field(Object, Object, Object) such that, instead of throwing an unchecked exception, it simply does not set a field if the field does not exist. This corresponds with other unsafe methods (namely get_java_field), which do not throw exceptions if the target does not exist.

@bluelhf
Copy link
Contributor Author

bluelhf commented Jun 23, 2022

wow, i suck at git, sec

@Moderocky Moderocky merged commit 0231e9f into Moderocky:master Jun 27, 2022
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

Successfully merging this pull request may close these issues.

2 participants