Re: [Sablevm-developer] Re: Reflection and interfaces
Brought to you by:
egagnon
From: Etienne G. <gag...@uq...> - 2004-05-21 16:28:37
|
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); > } > } This makes sense. I have checked that code in staging, but it would be nice if you could actually test it. I have put packages for you to test on: http://www.info.uqam.ca/~egagnon/sablevm/ Please let us know it it works. Thanks! Etienne -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |