> Does anyone know if you can turn asserts on on the fly or > not? I think the > programmatic interface would let you do that; with a JMX > wrapper you could > manage assertions on a running system. That would be slick. > Mind you, I need > a way of doing that for log4j too.
Yes, you can, using various classloader methods (setDefaultAssertionStatus, setPackageAssertionStatus, setClassAssertionStatus and clearAssertionStatus). However, I don't believe that can affect classes which have already been loaded (unless it uses some foul reflection and *assumes* the form that the compiler puts in). Jon -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
