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 syntax question regarding elipsis (...) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Assertion syntax question regarding elipsis (...)" Watch "Assertion syntax question regarding elipsis (...)" New topic
Author

Assertion syntax question regarding elipsis (...)

Leonardo Crespo
Ranch Hand

Joined: Jul 03, 2005
Posts: 31
Hi, i could use some help on assertions

K&B book says that


will enable assertions for all classes in mysubpackage and all classes in every subpackage bellow that.

J2SE5 DOC says that:


(note the 3 dots ... after mysubpackage). is the correct syntax for enabling assertions in mysubpackage classes and all classes bellow it.

Which one is the correct option? Both works for me...

Thank you very much.


Leonardo Crespo
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
[B]K&B book says that

will enable assertions for all classes in mysubpackage and all classes in every subpackage bellow that. [/B]

Are you referring to command-line examples listed in table 4-4 on page 263 of K&B book? On my book, it does include the 3 dots.


Have you checked out the book's errata?
Leonardo Crespo
Ranch Hand

Joined: Jul 03, 2005
Posts: 31
That should be the case, thank you Joyce.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assertion syntax question regarding elipsis (...)