views:

62

answers:

2

When reading some documentation about assertions, I found:

java -ea -dsa 

"Enables assertions in general, but disables assertions in system classes."

Which are the system classes?

+5  A: 

According to the assertions documentation, system classes are classes "which do not have an explicit class loader", i.e. the classes loaded by the bootstrap classloader. AFAIK that means the contents of rt.jar, the entire standard API.

Michael Borgwardt
The endorsed directory as well. Not sure about extension directories (which have a definitely non-null class loader).
Tom Hawtin - tackline
A: 

Per the same documentation system classes are classes which do not have a class loader. Could be the classes found on the boot class path

ring bearer