Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb2d94a9 authored by Michael Hoisie's avatar Michael Hoisie
Browse files

Print an informative message when trying to register an unsupported class

Previously, if there was a class name passed in the core_native_classes
or graphics_native_classes system property, and the class name wasn't
present in the JNI registration map, the process would crash, and you
would see the generic error message:

    out_of_range was thrown in -fno-exceptions mode with message
    "unordered_map::at: key not found"

Update the logic to print an actionable error message and return an
error, which causes JNI registration to fail.

Bug: 437898369
FLAG: EXEMPT host-only
Test: Robolectric test in Google3
Change-Id: I370a01ae3fe9aee4b0d023bbd4406a7d07afc456
parent 1cf0749b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment