Logo Search packages:      
Sourcecode: jamvm version File versions

synchronized void java::lang::ClassLoader::setClassAssertionStatus ( String  name,
boolean  enabled 
) [inline]

Set the default assertion status for a class. This only affects the status of top-level classes, any other string is harmless.

Parameters:
name the class to affect
enabled true to set the default to enabled
Exceptions:
NullPointerException if name is null
See also:
setDefaultAssertionStatus(String, boolean)

setPackageAssertionStatus(String, boolean)

clearAssertionStatus()

Since:
1.4

Definition at line 898 of file ClassLoader.java.

References classAssertionStatus, and systemClassAssertionStatus.

  {
    if (classAssertionStatus == null)
      classAssertionStatus = new HashMap(systemClassAssertionStatus);
    // The toString() hack catches null, as required.
    classAssertionStatus.put(name.toString(), Boolean.valueOf(enabled));
  }


Generated by  Doxygen 1.6.0   Back to index