The order of parameters passed to vm_class_is_assignable_from() should be the other way around.
Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- jit/exception.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/jit/exception.c b/jit/exception.c index ad0ed72..07fdc82 100644 --- a/jit/exception.c +++ b/jit/exception.c @@ -165,7 +165,7 @@ static unsigned char *find_handler(struct compilation_unit *cu, catch_class = vm_class_resolve_class(method->class, eh->catch_type); - if (vm_class_is_assignable_from(exception_class, catch_class)) + if (vm_class_is_assignable_from(catch_class, exception_class)) break; } -- 1.6.0.6 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel