ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: How to strip 'assert' statements
Date Tue, 26 Nov 2002 12:20:12 GMT
> I have been seeking a way to remove assert statements from 
> source code 
> (... a copy of the source code, of course ...) so that I can compile 
> JVM1.1 compatible class files. The JDK1.4 compiler will only generate 
> JVM1.1 class files from source code without assert 
> statements, alas. So I've been thinking about how this might be done using 
> Ant.

Any reason why you have to do it on the source code? I once wrote something to remove assertions
from the class files instead. It's a bit hacky, but you *might* be able to do something with
it. It uses BCEL, IIRC.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message