Logo Search packages:      
Sourcecode: jamvm version File versions

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

Set the default assertion status for packages, used unless overridden by a class request. This default also covers subpackages, unless they are also specified. The unnamed package should use null for the name.

Parameters:
name the package (and subpackages) to affect
enabled true to set the default to enabled
See also:
setDefaultAssertionStatus(String, boolean)

setClassAssertionStatus(String, boolean)

clearAssertionStatus()

Since:
1.4

Definition at line 877 of file ClassLoader.java.

References packageAssertionStatus, and systemPackageAssertionStatus.

  {
    if (packageAssertionStatus == null)
      packageAssertionStatus
        = new HashMap(systemPackageAssertionStatus);
    packageAssertionStatus.put(name, Boolean.valueOf(enabled));
  }


Generated by  Doxygen 1.6.0   Back to index