Page 1 of 1

About Question enthuware.ocpjp.v7.2.1607 :

Posted: Tue Jul 22, 2014 6:05 am
by bptoth
In the explanation of option two "only for package named TestClass" should be likely "only for class named TestClass"?

Re: About Question enthuware.ocpjp.v7.2.1607 :

Posted: Tue Jul 22, 2014 6:22 am
by admin

Re: About Question enthuware.ocpjp.v7.2.1607 :

Posted: Tue Jul 22, 2014 7:51 am
by bptoth
Maybe I missed something, but my understanding was that to enable assertions for some package, the postfix "..." should be used. In this case we have "java -ea:TestClass" which seems to indicate that we would like to enable assertions for the class TestClass, and it would be "java -ea:TestClass..." that would enable assertions for a package called TestClass

The link you suggested seems to indicate the same: With one argument ending in "...", assertions are enabled in the specified package. and With one argument not ending in "...", assertions are enabled in the specified class.

Re: About Question enthuware.ocpjp.v7.2.1607 :

Posted: Tue Jul 22, 2014 7:57 am
by admin
You are right. I misread. Very sorry about that :(