I agree. Is a good VM not able to optimize this at runtime?
Wim
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of danch
Sent: donderdag 8 maart 2001 22:06
To: JBoss-Dev
Subject: Re: [jBoss-Dev] optimizing out debug code
I'd personally rather be able to configure that at runtime.
Andrius Juozapaitis wrote:
>
> hi,
>
> just a small thing. it is possible to optimize out the debug code in
> JDBCCommand.java and WebServer.java, just modify
>
> public static boolean = false;
> to
> public static final boolean debug = false;
>
> during compile time, if a constant evaluates to true, the compiler omits
the
> conditional statement at all. so if there is no need of setting this
> property at the runtime, changing this would probably be a good idea.
>
> regards,
> --andrius