• 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 Qz

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java -ea rg.pkg... -da rg... -dsa org.pkg.AssertionTest

I am wondering whether any overwriten happened with switch -ea and -da.
For example:
1)-ea rg.pkg...-->enable all classes in the package org.pkg and its sub-package
2)-da rg...-->disable all classes in the package org and its sub-package(org.pkg)

final results: org.pkg.AssertionTest class is still off with the assertion check, which means 2)'s effect overwrite 1)'s effect

My thoughts are correct or not? Thanks.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note: With smilies (like ) disabled, this is...

Originally posted by liqiang yang:
java -ea:org.pkg... -da:org... -dsa org.pkg.AssertionTest
...
1)-ea:org.pkg...-->enable all classes in the package org.pkg and its sub-package
2)-da:org...-->disable all classes in the package org and its sub-package(org.pkg)...

 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
liqiang yang,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"Qz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.
-Ben
[ March 20, 2008: Message edited by: Ben Souther ]
 
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes..I think you are right.
[ March 20, 2008: Message edited by: Sunny Jain ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic