How do I enable assertions in a package and all its subpackages?

John Zukowski

Add ... to the end of the top level package name, along with the required -ea / -enableassertions command line switch, as in java -ea:com.example.foo... FooClass.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.