We connect it to VMClass.getClassLoader(). Classpath's documentation
says that we should do this, and the duplicate function was introduced
to workaround access control problems.

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/jato.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/vm/jato.c b/vm/jato.c
index 4afed2a..0f13dc6 100644
--- a/vm/jato.c
+++ b/vm/jato.c
@@ -817,6 +817,7 @@ static struct vm_object *native_vmstring_intern(struct 
vm_object *str)
 
 static struct vm_native natives[] = {
        DEFINE_NATIVE("gnu/classpath/VMStackWalker", "getClassContext", 
&native_vmstackwalker_getclasscontext),
+       DEFINE_NATIVE("gnu/classpath/VMStackWalker", "getClassLoader", 
&native_vmclass_getclassloader),
        DEFINE_NATIVE("gnu/classpath/VMSystemProperties", "preInit", 
&native_vmsystemproperties_preinit),
        DEFINE_NATIVE("jato/internal/VM", "exit", &native_vmruntime_exit),
        DEFINE_NATIVE("jato/internal/VM", "println", &native_vmruntime_println),
-- 
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

Reply via email to