Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Assertion Mechanism

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using java 1.5

java -ea will enable assertion in system classes ?

java -da will disable assertion in system classes ?

java -ea -dsa meaning
 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amit,

java -ea will enable assertions in all classes except system classes.

java -da will disable assertions in all classes except system classes.

java -ea -dsa will enable assertions in all classes and disable for system classes.

-esa can be used to enable assertions for system classes where as -dsa for disabling the assertions for system classes.

Hope this is clear!

 
Ranch Hand
Posts: 1032
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

M Srilatha wrote:Hi Amit,

java -ea will enable assertions in all classes except system classes.

java -da will disable assertions in all classes except system classes.

java -ea -dsa will enable assertions in all classes and disable for system classes.

-esa can be used to enable assertions for system classes where as -dsa for disabling the assertions for system classes.

Hope this is clear!


In other words, there is no difference between
java -ea
and
java -ea -dsa
Let me know if you think I'm wrong.
 
reply
    Bookmark Topic Watch Topic
  • New Topic