Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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: 8904

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: 8904

Thanks Mike.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assertion & default package
 
Similar Threads
question
Assertion doubt
Doubt with assertions - Kathy Sierra chapter 10
Appropriate Assertion
Assertions