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   
© 2014 Hirondelle Systems | Source Code | Contact | License | RSS
Individual code snippets can be used under this BSD license - Last updated on September 21, 2013.
Over 2,000,000 unique IPs last year - Built with WEB4J.
- In Memoriam : Bill Dirani -