This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
wood burning stoves
 
subject: Assertion syntax question regarding elipsis (...)
 
Similar Threads
Question about assertions..
Enabling or disabling assertions
Assertions.
Enabling Assertions
Assertion - what are system classes?