Java Reference
In-Depth Information
Clears (turns off) all assertions for this class loader, wiping
clear any previous settings, whether from method invocations
or the command line.
In all cases the settings only apply to classes that are loaded and initial-
ized in the futureyou cannot change the assertion status of a class once
it has been loaded. More specifically, the assertion status of a class is
established during initialization: after initialization of the superclass, but
before execution of any static initializers.
As with the command-line options, the class-specific declarations have
precedence over the package-specific declarations, which in turn have
precedence over the class loader's default status. In effect the
command-line options simply request the virtual machine to invoke the
appropriate method on the class loader. So the command-line options
-da:com.acme.Evaluator -ea:com.acme...
are equivalent to the calls
loader.setClassAssertionStatus("com.acme.Evaluator", false);
loader.setPackageAssertionStatus("com.acme", true);
where loader is the class loader that will be used. (Note that the meth-
ods do not use the ... syntax that the command line uses because it is
apparent whether a name refers to a package or a class.)
Be and not seem.
Ralph Waldo Emerson
 
Search WWH ::




Custom Search