dcsimg

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.