Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- jit/load-store-bc.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/jit/load-store-bc.c b/jit/load-store-bc.c index 0a4ce7a..f636be5 100644 --- a/jit/load-store-bc.c +++ b/jit/load-store-bc.c @@ -11,6 +11,7 @@ #include "cafebabe/constant_pool.h" #include "jit/bytecode-to-ir.h" +#include "jit/exception.h" #include "jit/expression.h" #include "jit/statement.h" #include "jit/compiler.h" @@ -148,6 +149,10 @@ static int __convert_ldc(struct parse_context *ctx, unsigned long cp_idx) break; } + vm_class_ensure_init(ret); + if (exception_occurred()) + return -1; + expr = value_expr(J_REFERENCE, (unsigned long) ret->object); break; } -- 1.6.0.6 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel