yup. that was it! thanks!
[EMAIL PROTECTED] wrote:
Remember that inner class B of class C is
referenced in byte code as A$B.class. Anonymous classes
are numbered, e.g. A$12.class
Cheers
markus
Von: Jonathan Locke <[EMAIL PROTECTED]>
Datum: 2002/11/11 Mo AM 03:49:24 GMT+01:00
An: BCEL Users List <[EMAIL PROTECTED]>
Betreff: inner classes
so i wrote this cool bytecode instrumenting thing with BCEL.
works great! it loads and instruments all the classes under a
given package and writes the modified bytecode back to the
corresponding .class files.
unfortunately, it doesn't work for inner classes yet because it
looks like Repository.lookupClass does not work on inner classes.
is there some workaround to load a JavaClass for an inner class?
is there some generally better way to instrument the bytecode in
every method in every class (including inner classes) under a given
package? i feel like i'm kind of bashing at something that's probably
already done somewhere else...
thanks!
jon
--
To unsubscribe, e-mail: <mailto:bcel-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:bcel-user-help@;jakarta.apache.org>
--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern!
http://webmail.berlin.de
--
To unsubscribe, e-mail: <mailto:bcel-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:bcel-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:bcel-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:bcel-user-help@;jakarta.apache.org>