This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Assertion syntax question regarding elipsis (...)

 
Leonardo Crespo
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That should be the case, thank you Joyce.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic