Remove runtime platform checks #267
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "remove-platform-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR removes the runtime check for supported platforms. The check would throw an
UnsupportedPlatformExceptionwhen your runtime platform wasn't supported. Without the check, aNullPointerExceptionwill be thrown (because the MethodHandle will be null). So the actual benefit of the check was really small, but it complicated the code generator and incurred a bit of runtime overhead.