Re: [Sablevm-developer] trying to build w/ free-java-sdk (sablevm) - failure
Brought to you by:
egagnon
From: Etienne M. G. <eti...@uq...> - 2002-09-06 13:38:58
|
Grzegorz Prokopski wrote: > *** Couldn't bind native method Java_java_lang_Class_getMethods *** > *** or Java_java_lang_Class_getMethods__ *** ... > java.lang.UnsatisfiedLinkError > at java.lang.Class.getMethods(Class.java) ... > It seems that java.lang.Class.getMethods(Class.java) is having some > problems. Is this GNU Classpath problem of SableVM's? Ant does some pretty heavy use of reflection. You can look at the API specification of java.lang.Class.getMethods() [in any recent API specification of Java], and you'll see what should be returned by this method. You are invited to implement it, if you want... [I thought I had already said all this in a previous message.] Reflection is the responsibility of the VM, so, yes , it is a missing native method in SableVM. As I said earlier, I am in my first teaching week, so don't count on me to implement it (and the upcoming many reflection methods in the Ant source code that follows the call to getMethods()) before a couple of weeks. You are free to do it, though. getMethod (and/or? getDeclaredMethod) is already implemented, and can be used as inspiration. Source file: sablevm-x.y.z/src/libsablevm/java_lang_Class.c . The type structures are defined in sablevm-x.y.z/src/libsablevm/types.h . I know you'd like it working *now*, but *I* do not have time just *now*. :( Have fun! Etienne -- Etienne M. Gagnon http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |