Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enabling assertions

 
V Bose
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have set the compliance setting to 1.4, but I am not able to run and trigger an assertion error. Even if the assertion fails, the console does not report the assertion failure. Is there some option in eclipse which I am not setting properly?
Thanks in advance...
 
Peter Reinhardt
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just add "-enableassertions" to the VM arguments. I haven't seen a preferences setting for enabling assertions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic