Skip to content

Fail to Load CRT safely#988

Draft
azkrishpy wants to merge 1 commit into
mainfrom
fail-load
Draft

Fail to Load CRT safely#988
azkrishpy wants to merge 1 commit into
mainfrom
fail-load

Conversation

@azkrishpy
Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:
When CRT is attempted to load on the wrong platform, currently it throws a runtime exception from a static class, causing jvm to automatically throw an ExceptionInInitializerError which is never caught and might crash users. This change attempts set a static throwable instead of throwing it and use a helper to check whether CRT was loaded correctly, avoiding an error being thrown while throwing the Exception.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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.

1 participant