On Thu, 15 Nov 2001, David Maplesden wrote:

> if(DEBUG) log.debug("a message");
>
> so that we can easily set the flag to false and recompile a higher
> performance version of the engine.  With the static flag set to false the
> compiler removes the line completely, so there is no performance hit at all.

I doubt this is fully true.  I once did a decompile of a .class(a bad rm
removed the .java), and it gave me mostly functioning code.  However, I can't
recall if there was any use of static finals.

The compiler probably just has a goto that jumps over it.



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to