dukeify / fake-jni

An implementation of the JNI and JVMTI with support for direct interaction between natively registered classes and JVM objects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return from Jvm::start when Jvm::fatalError is thrown

Matthewacon opened this issue · comments

Related to #54. libunwind supports resuming execution from an arbitrary stack frame. When Jvm::fatalError is invoked, Jvm::exception should be set with the message of the error and Jvm::start should return to allow the user to deal with the error accordingly.

When looking for the vm entry invocation, check for both the base invocation and virtual overloads.