We should not initialize class on loading.
Signed-off-by: Tomek Grabiec <[email protected]>
---
vm/jato.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/vm/jato.c b/vm/jato.c
index e9277b8..b485cff 100644
--- a/vm/jato.c
+++ b/vm/jato.c
@@ -800,7 +800,9 @@ native_vmclassloader_loadclass(struct vm_object *name,
jboolean resolve)
if (!vmc)
return NULL;
- vm_class_ensure_init(vmc);
+ if (vm_class_ensure_object(vmc))
+ return NULL;
+
return vmc->object;
}
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel