This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Assertion & default package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Assertion & default package" Watch "Assertion & default package" New topic
Author

Assertion & default package

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

I tried to enable assertion for a class file in the default package but it did not work.



Can't we eanble assertion for default package alone ?
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
Try this
java -ea:... AssertionTest


Mike Gershman
SCJP 1.4, SCWCD in process
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Thanks Mike.
 
Consider Paul's rocket mass heater.
 
subject: Assertion & default package