Spec update for Class#getDeclaredMethods()

Florian Weimer fweimer at bfk.de
Thu Jul 16 14:10:02 UTC 2009


* Rémi Forax:

> The solution is to not rely on reflection and to parse the bytecode
> using by example ASM :
> see http://asm.ow2.org/

I think you'd still need to sort based on line numbers, which requires
debugging information which is not always available.

The only reliable way I know is to use a JSR 269 compiler plugin.
Members are guaranteed to be in source order over there.  (But this
still suffers from poor IDE support, AFAICS.)

-- 
Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99



More information about the core-libs-dev mailing list