Hareendra Reddy wrote:Actually i am confused with some of the switches used with java command ....
1) java -ea Myclass
Does it enable assertions for system classes also??
2) java -ea:... MyClass
How it works if the argument is simply "..."
3) Documentation says in their "no-argument form, the switches do not apply to system classes"
What is no argument form??
Thanks in advance...
java -ea Myclass
is a no-argument form. This means that it will enable assertions in general, i.e. all system classes, all packages
You can enable and disable assertions on a class-by-class basis
Sierra/Bates wrote:java -ea -da:MyClass TestClass
Here you are enabling assertions for all classes EXCEPT MyClass
As for your second question
java -ea:... MyClass
I don't recall seeing this syntax. If this is part of a code sample, kindly post it here so we can assist.