> I'd have a really hard time believing that the JVM can't optimize stuff
> like this:

and right you are;
http://stackoverflow.com/questions/1813853/ifdef-ifndef-in-java/1813871#1813871

It's compiled out, even if the main function isn't static. If you are 
in doubt, just javap -c at the class file and search for a debug string 
with debug = false and with debug = true and see if it works for the 
class at hand.

--Stefan

_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to