1Regression test for b/342077744: handle the case we may running generic JNI for 2a method but its entrypoint is a shared boot image JNI stub. 3