* 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 <fwei...@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