As far as I understand they use ObjectWEb ASM rather than BCEL in their example. But in any case, this approach implies trust in these code-manipulation libraries. Does it stable enough? Can't it produce corrupted byte-code?
2006/6/1, Geir Magnusson Jr <[EMAIL PROTECTED]>:
Anton Luht wrote: > It is possible to remove all calls to logging below a certain level > from .class files using BCEL: > http://surguy.net/articles/removing-log-messages.xml . In this example > logging is removed on fly when class is loaded, but this tool can be > run against class files in the process of building release version. > For example, debug version can contain all logging and release - only > errors. This approach has one disadvantage: it is non-standard and > looks like a dirty hack :) Yah. I'd rather see us add the logging this way rather than removing it, using annotations or aspects or something... I'll try to experiment with this tomorrow.
--- Alexei Zakharov, Intel Middleware Product Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]