[Sablevm-developer] Re: Reflection and interfaces
Brought to you by:
egagnon
From: Laurent M. <la...@ao...> - 2004-05-21 10:21:32
|
>>>>> "Grzegorz" == Grzegorz B Prokopski <ga...@de...> writes: Grzegorz> On (19/05/04 14:19), Laurent Martelli wrote: >> Hello, >> >> java.lang.Class.getMethods() returns an empty for interfaces with >> sablevm 1.1.4. Is it a known bug/limitation ? Grzegorz> I have looked at the code of Classpath and functions Grzegorz> called into the VM and it seems that this should be Grzegorz> handled. I presume it's a bug then. Grzegorz> Could somebody more insightful take a look at that? 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); } } I though I had already sen this to the list, but I've been using gmane and there seems to be a delay. -- Laurent Martelli la...@ao... Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org |