• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic