File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Assertion & default package