Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 jit/exception.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/jit/exception.c b/jit/exception.c
index b1deb30..c5a7160 100644
--- a/jit/exception.c
+++ b/jit/exception.c
@@ -122,8 +122,7 @@ int signal_new_exception_with_cause(struct vm_class *vmc,
         */
        init = vm_class_get_method(vmc, "<init>", "(Ljava/lang/Throwable;)V");
        if (init) {
-               exception = vm_object_alloc(
-                               vm_java_lang_ExceptionInInitializerError);
+               exception = vm_object_alloc(vmc);
                if (!exception) {
                        NOT_IMPLEMENTED;
                        return -1;
-- 
1.6.0.6


------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to