Re: [Sablevm-developer] Re: Reflection and interfaces
Brought to you by:
egagnon
From: Chris P. <chr...@ma...> - 2004-05-21 14:24:54
|
Chris Pickett wrote: > Laurent Martelli wrote: >> >>I think java.lang.Class.getDeclaredMethods() should rather look like this: >> >> Method[] getDeclaredMethods (boolean publicOnly) >> { >>- if (isPrimitive() || isArray() || isInterface()) >>+ if (isPrimitive() || isArray()) >> { >> return new Method[] { }; >> } >> else >> { >> return VMClass.getDeclaredMethods(this, publicOnly); >> } >> } > > In the meantime, for the above, you can take a look at > VMClass.getDeclaredMethods() in > sablevm/src/libsablevm/java_lang_VMClass.c and maybe you'll find the > problem. That's a silly answer from me, because you're suggesting the problem is with GNU Classpath, not SableVM. Does it work for you if you make the above change to Classpath? Cheers, Chris |