Assertions in general

Assertions in general : Reminders regarding use : Examples of typical styles, which affect non-system classes :
 
Runtime command line Classes with assertions enabled
java -ea  Main all classes
java -ea:com.Blah   Main one particular class named Blah
java -ea:com.data... Main all classes in the com.data package, and all of its sub packages
java -ea -da:com.Blah Main all but one class named Blah

See Also :
Conditional compile
Pass all pertinent data to exceptions
Would you use this technique?
Yes   No   Undecided   
© 2012 Hirondelle Systems | Source Code | Contact | License | RSS
Individual code snippets can be used under this BSD license - Last updated on August 1, 2010.
Over 180,000 unique IPs last month - Built with WEB4J.
- In Memoriam : Bill Dirani -