[Sablevm-developer] Re: Reflection and interfaces
Brought to you by:
egagnon
From: Laurent M. <la...@ao...> - 2004-05-21 15:36:12
|
>>>>> "Chris" == Chris Pickett <chr...@ma...> writes: Chris> 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. Chris> That's a silly answer from me, because you're suggesting the Chris> problem is with GNU Classpath, not SableVM. Does it work for Chris> you if you make the above change to Classpath? Yes it does. -- Laurent Martelli la...@ao... Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org |