It is unnecessary to clear exception prior to signaling since signaling overrides any pending exception.
Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- vm/class.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/vm/class.c b/vm/class.c index 915e5e0..a96f1b6 100644 --- a/vm/class.c +++ b/vm/class.c @@ -452,7 +452,6 @@ int vm_class_init(struct vm_class *vmc) exception = exception_occurred(); if (!vm_object_is_instance_of(exception, vm_java_lang_Error)) { - clear_exception(); signal_new_exception_with_cause( vm_java_lang_ExceptionInInitializerError, exception, -- 1.6.0.6 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel