dcsimg

How do I enable assertions in only a single package?

John Zukowski

Use the -enableassertions, or -ea, command line switch, as in java -ea:com.example.other MyClass.